Skip to content

Commit

Permalink
chore: remove unreachable code (#8465)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Jan 25, 2025
1 parent ac88f73 commit 56f723a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ietf/meeting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,14 +744,6 @@ def handle_upload_file(file, filename, meeting, subdir, request=None, encoding=N
path = Path(meeting.get_materials_path()) / subdir
path.mkdir(parents=True, exist_ok=True)

# agendas and minutes can only have one file instance so delete file if it already exists
if subdir in ('agenda', 'minutes'):
for f in path.glob(f'{filename.stem}.*'):
try:
f.unlink()
except FileNotFoundError:
pass # if the file is already gone, so be it

with (path / filename).open('wb+') as destination:
# prep file for reading
if hasattr(file, "chunks"):
Expand Down

0 comments on commit 56f723a

Please sign in to comment.