Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
James Wood authored and James Wood committed Feb 1, 2025
1 parent c02591a commit de157ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions podaac/hitide_backfill_tool/s3_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def list_s3_keys(self, s3_path):

s3_client = boto3.client("s3")
response = s3_client.list_objects_v2(Bucket=bucket_name, Prefix=prefix)

if "Contents" in response:
return [obj["Key"] for obj in response["Contents"]]
else:
return []

return []

0 comments on commit de157ac

Please sign in to comment.