Skip to content

Commit 502606d

Browse files
committed
Fix is_protection_forced_off_cached mistakes
1 parent aaa5ee7 commit 502606d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aikido_zen/helpers/is_protection_forced_off_cached.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from aikido_zen.thread.thread_cache import get_cache
2-
from aikido_zen.helpers import protection_forced_off
2+
from aikido_zen.helpers.protection_forced_off import protection_forced_off
33
from aikido_zen.context import Context
44

55

@@ -24,6 +24,7 @@ def is_protection_forced_off_cached(context: Context) -> bool:
2424
is_forced_off = protection_forced_off(
2525
context.get_route_metadata(), thread_cache.get_endpoints()
2626
)
27-
context.set_force_protection_off(is_forced_off).set_as_current_context()
27+
context.set_force_protection_off(is_forced_off)
28+
context.set_as_current_context()
2829

2930
return is_forced_off

0 commit comments

Comments
 (0)