Skip to content

Commit b538778

Browse files
committed
fix: return the value instead of fetching it
1 parent ec68c8d commit b538778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vsc/utils/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def update(self, key, data, threshold=None):
8888

8989
if not old_data or now - old_timestamp > threshold:
9090
self.set(key=key, value=(now, data), expire=threshold)
91-
return self[key]
91+
return (now, data)
9292
else:
9393
return (old_timestamp, old_data)
9494

0 commit comments

Comments
 (0)