Skip to content

Commit

Permalink
Removed code that no longer applies with gzip removed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcottner committed Oct 15, 2024
1 parent 4367e5b commit 88e162c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/kinto_attachment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def save_file(request, content, folder=None, keep_link=True, replace=False):
_, extension = os.path.splitext(filename)
mimetype = overriden_mimetypes.get(extension, content.type)

original = None
save_options = {
"folder": folder,
"randomize": randomize,
Expand All @@ -187,8 +186,6 @@ def save_file(request, content, folder=None, keep_link=True, replace=False):
"mimetype": mimetype,
"size": size,
}
if original is not None:
attachment["original"] = original

if keep_link:
# Store link between record and attachment (for later deletion).
Expand Down

0 comments on commit 88e162c

Please sign in to comment.