Skip to content

Commit

Permalink
Fix code scanning alert no. 2: Clear-text logging of sensitive inform…
Browse files Browse the repository at this point in the history
…ation

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Matthew McGilvery <[email protected]>
  • Loading branch information
nctrnm and github-advanced-security[bot] authored Sep 24, 2024
1 parent e0f6e1a commit 4e4ed0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def main():
coords2 = get_coordinates(city2)

if coords1:
print(f"Coordinates of {city1}: Latitude {coords1[0]:.4f}, Longitude {coords1[1]:.4f}")
print(f"Coordinates of {city1} found successfully.")
else:
print(f"Unable to find coordinates for {city1}")

if coords2:
print(f"Coordinates of {city2}: Latitude {coords2[0]:.4f}, Longitude {coords2[1]:.4f}")
print(f"Coordinates of {city2} found successfully.")
else:
print(f"Unable to find coordinates for {city2}")

Expand Down

0 comments on commit 4e4ed0a

Please sign in to comment.