Skip to content

Commit

Permalink
Clean up more env var handling code
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Nov 11, 2024
1 parent 851cc0c commit a4a75f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,7 @@ def process_import_function(event, context):
}
]
)
# Possible that these values are strings instead of booleans
if (
file_archiving_enabled
and isinstance(file_archiving_enabled, bool)
) or file_archiving_enabled == "True":
if file_archiving_enabled:
archive_individual_files(bucket, file_paths, filedir)

# delete object from original bucket
Expand Down

0 comments on commit a4a75f5

Please sign in to comment.