Skip to content

Commit

Permalink
bugFix/pycodestyle-file-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
hima890 committed Jul 29, 2024
1 parent 532e44c commit 7c6dc9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/engine/file_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def all(self, cls=None):
else:
new_dict = {}
for key, value in self.__objects.items():
if isinstance(value, cls) or ((isinstance(cls, str)
and cls == key.split('.')[0])):
if isinstance(value, cls) or (
isinstance(cls, str) and cls == key.split('.')[0]
):
new_dict[key] = value
return new_dict

Expand Down

0 comments on commit 7c6dc9a

Please sign in to comment.