Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Commit

Permalink
fix codesmell
Browse files Browse the repository at this point in the history
  • Loading branch information
tubone24 committed Apr 20, 2019
1 parent 37227f9 commit 17469e3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ebook_homebrew/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ def convert_content_type_to_extension(content_type):
"""
if content_type == "image/jpeg":
return "jpg"
extension = "jpg"
elif content_type == "image/png":
return "png"
extension = "png"
elif content_type == "image/gif":
return "gif"
extension = "gif"
else:
extension = False

return False
return extension

0 comments on commit 17469e3

Please sign in to comment.