Skip to content

Commit

Permalink
Merge pull request #7 from conveyal/quote-fix
Browse files Browse the repository at this point in the history
Replace template strings with regular strings
  • Loading branch information
evansiroky authored Feb 15, 2017
2 parents d75a29a + 597aba7 commit 075e127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ function floatize (lonlat) {
var lon = parseFloatWithAlternates([lonlat.lon, lonlat.lng, lonlat.longitude])
var lat = parseFloatWithAlternates([lonlat.lat, lonlat.latitude])
if ((!lon || lon > 180 || lon < -180) && lon !== 0) {
throw new Error(`Invalid longitude value: ${lonlat.lon || lonlat.lng || lonlat.longitude}`)
throw new Error('Invalid longitude value: ' + (lonlat.lon || lonlat.lng || lonlat.longitude))
}
if ((!lat || lat > 90 || lat < -90) && lat !== 0) {
throw new Error(`Invalid longitude value: ${lonlat.lat || lonlat.latitude}`)
throw new Error('Invalid longitude value: ' + (lonlat.lat || lonlat.latitude))

This comment has been minimized.

Copy link
@mattwigway

mattwigway Feb 24, 2017

@evansiroky shouldn't this be "Invalid latitude value?"

This comment has been minimized.

Copy link
@evansiroky

evansiroky Feb 24, 2017

Author Contributor

yep

}
return {lon: lon, lat: lat}
}
Expand Down

0 comments on commit 075e127

Please sign in to comment.