Skip to content

Commit

Permalink
Linting reconfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianToro committed Aug 13, 2024
1 parent 6bd5673 commit cff217e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def get_coordinates(args):
geolocator = Nominatim(user_agent="cli-surf")
location = geolocator.geocode(address)
if location is not None:
return [location.latitude, location.longitude, location.raw['name']]
return [
location.latitude,
location.longitude,
location.raw["name"],
]
else:
print(
f"Invalid location '{address}' provided. "
Expand Down

0 comments on commit cff217e

Please sign in to comment.