diff --git a/vql/functions/hash.go b/vql/functions/hash.go index 0cc48d4dc..420957c06 100644 --- a/vql/functions/hash.go +++ b/vql/functions/hash.go @@ -202,7 +202,8 @@ func (self *HashFunction) Call(ctx context.Context, if useCache { cache = GetHashResultCache(scope) - entry, isCached := cache.Get(path) + var isCached bool + entry, isCached = cache.Get(path) if isCached { isValid, _ := entry.Validate(path) if isValid {