Skip to content

Commit

Permalink
Merge pull request #18 from GaviriaAmaya/JM#7
Browse files Browse the repository at this point in the history
[fixes] add comment to delete method
  • Loading branch information
GaviriaAmaya committed Aug 14, 2019
2 parents 6e859f4 + 99371c1 commit 040c254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions models/engine/file_storage.py
Expand Up @@ -64,6 +64,8 @@ def reload(self):
pass

def delete(self, obj=None):
"""delete object from __objects """

if obj and hasattr(obj, "id"):
key = "{}.{}".format(obj.__class__.__name__, obj.id)
del self.__objects[key]
Expand Down

0 comments on commit 040c254

Please sign in to comment.