Skip to content

Commit 2603ef9

Browse files
committed
Fix delete
1 parent 9ac1be3 commit 2603ef9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aikido_zen/background_process/routes/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ def manage_routes_size(self):
8383
if route.get("hits") < least_used[1]:
8484
least_used = [key, route.get("hits")]
8585
if least_used[0]:
86-
delete_route = self.routes[least_used[0]]
87-
if delete_route:
88-
del delete_route
86+
del self.routes[least_used[0]]
8987

9088
def __iter__(self):
9189
return iter(self.routes.values())

0 commit comments

Comments
 (0)