Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Dec 18, 2024
1 parent 71da7f1 commit 6774d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/client/query/cache/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (cfg *queryCacheConfig) Validate() error {
return ErrQueryCacheConfigValidation.Wrapf("eviction policy %d not imlemented", cfg.evictionPolicy)
}

if cfg.maxVersionAge > 0 && cfg.historical == false {
if cfg.maxVersionAge > 0 && !cfg.historical {
return ErrQueryCacheConfigValidation.Wrap("maxVersionAge > 0 requires historical mode to be enabled")
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/client/query/cache/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestInMemoryCache_Historical(t *testing.T) {
require.Equal(t, "value2", val)

// Test getting a version for a key that isn't cached
val, err = cache.GetAsOfVersion("key2", 20)
_, err = cache.GetAsOfVersion("key2", 20)
require.ErrorIs(t, err, ErrCacheMiss)
})

Expand Down

0 comments on commit 6774d3a

Please sign in to comment.