diff --git a/app/main.py b/app/main.py index d7060bea..f98e8c62 100644 --- a/app/main.py +++ b/app/main.py @@ -8,8 +8,7 @@ def wrapper(*args) -> Any: if args in cache_dict: print("Getting from cache") else: - new_result = func(*args) - cache_dict[args] = new_result + cache_dict[args] = func(*args) print("Calculating new result") return cache_dict[args] return wrapper