Browse Source

Remove a useless for-else

master
Marien Fressinaud 6 years ago
parent
commit
8d892315ff
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      boop.py

+ 1
- 2
boop.py View File

for photo in photos: for photo in photos:
if photo["name"] == photo_name: if photo["name"] == photo_name:
return photo return photo
else:
return None
return None




def list_photos_in(gallery_dir, gallery_output_path): def list_photos_in(gallery_dir, gallery_output_path):

Loading…
Cancel
Save