Skip to content

Commit

Permalink
refactor: Remove unused cleanup_temp_files function from reports_pdf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Nov 5, 2024
1 parent bd7472a commit 2f97bbd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions backend/app/incidents/services/reports_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,3 @@ def create_file_response_pdf(file_path: str, file_name: Optional[str] = "case_re
filename=file_name,
media_type="application/pdf",
)

def cleanup_temp_files(file_paths: list):
"""Clean up the temporary files."""
for file_path in file_paths:
if os.path.exists(file_path):
os.remove(file_path)

0 comments on commit 2f97bbd

Please sign in to comment.