Skip to content

Commit

Permalink
cleanup: unused variable and align comments
Browse files Browse the repository at this point in the history
  • Loading branch information
allenj committed Feb 6, 2025
1 parent bfa147f commit 0167520
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pygeoapi/formatter/csv_.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def write(self, options: dict = {}, data: dict = None) -> str:
:returns: string representation of format
"""

is_point = False
try:
fields = list(data['features'][0]['properties'].keys())
except IndexError:
Expand All @@ -89,8 +88,8 @@ def write(self, options: dict = {}, data: dict = None) -> str:
for feature in data['features']:
fp = feature['properties']

# Safely remove the 'geometry' key if it exists as we don't want that key being directly written out to
# the csv
# Safely remove the 'geometry' key if it exists as we don't want
# that key being directly written out to the csv
if 'geometry' in fp:
del fp['geometry']

Expand Down

0 comments on commit 0167520

Please sign in to comment.