diff --git a/lua/grapple/app.lua b/lua/grapple/app.lua index b683d87..10ac340 100644 --- a/lua/grapple/app.lua +++ b/lua/grapple/app.lua @@ -477,9 +477,6 @@ function App:resolve_scope(opts) return nil, err end - if not self.scope_manager.cache:exists(scope.id) then - self.scope_manager.cache:open(scope.id, {}) - end self.scope_manager.cache:store(scope.id, scope) return scope, nil diff --git a/lua/grapple/cache.lua b/lua/grapple/cache.lua index 73b70ba..fc61a3c 100644 --- a/lua/grapple/cache.lua +++ b/lua/grapple/cache.lua @@ -155,7 +155,7 @@ end ---@param value any function Cache:store(id, value) if not self:exists(id) then - return + self:open(id, {}) end local cache_value = self.cache[id]