Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
codingsince1985 committed Jan 30, 2017
1 parent bf69a00 commit f44149a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geocoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func ExampleGeocoder() {
//
// Mapbox API
// Melbourne VIC location is (-37.814200, 144.963200)
// Address of (-37.813611,144.963056) is Elwood Park Playground, 3000 Melbourne, Australia
// Address of (-37.813611,144.963056) is Elwood Park Playground, Melbourne, Victoria 3000, Australia
//
// OpenStreetMap
// Melbourne VIC location is (-37.814217, 144.963161)
Expand Down
4 changes: 2 additions & 2 deletions http_geocoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func response(url string, obj ResponseParser) {
}
}

func anyError(v interface{}) (err error) {
func anyError(v interface{}) error {
switch v := v.(type) {
case Location:
if v.Lat == 0 && v.Lng == 0 {
Expand All @@ -106,7 +106,7 @@ func anyError(v interface{}) (err error) {
return ErrNoResult
}
}
return
return nil
}

func ParseFloat(value string) float64 {
Expand Down

0 comments on commit f44149a

Please sign in to comment.