From 01675200c9ab6ebb4f4ea1f5247e9b875313320e Mon Sep 17 00:00:00 2001 From: "Allen, Jeffrey" Date: Thu, 6 Feb 2025 13:55:03 -0700 Subject: [PATCH] cleanup: unused variable and align comments --- pygeoapi/formatter/csv_.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pygeoapi/formatter/csv_.py b/pygeoapi/formatter/csv_.py index 9af056e38..38a39e3e3 100644 --- a/pygeoapi/formatter/csv_.py +++ b/pygeoapi/formatter/csv_.py @@ -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: @@ -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']