Commit 342e4ce4 authored by rusty1s's avatar rusty1s
Browse files

typo

parent 04593307
......@@ -40,7 +40,7 @@ class cached_property(object):
value = getattr(obj, f'_{self.func.__name__}', None)
if value is None:
value = self.func(obj)
if __cache_flag__['enabled']:
if is_cache_enabled():
setattr(obj, f'_{self.func.__name__}', value)
return value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment