Skip to content

Commit

Permalink
Fix [wrapper_cache]: remove redundant return
Browse files Browse the repository at this point in the history
  • Loading branch information
frezworx committed Sep 27, 2023
1 parent 73be915 commit 6e59b4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ def wrapper_cache(*args) -> Any:
if key not in memory:
memory[key] = func(*args)
print("Calculating new result")

return memory[key]
else:
print("Getting from cache")
return memory[key]

return memory[key]

return wrapper_cache

0 comments on commit 6e59b4b

Please sign in to comment.