Skip to content

Commit

Permalink
lint: Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmessi committed Sep 23, 2024
1 parent 32d4163 commit 51a2b20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions internal/clientcache/internal/cache/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import (
"github.com/hashicorp/go-hclog"
)

// This is used as an internal error to indicate that a refresh is already in
// progress, as a signal that the caller may want to handle it a different way.
// ErrRefreshInProgress is used as an internal error to indicate that a refresh
// is already in progress, as a signal that the caller may want to handle it a
// different way.
var ErrRefreshInProgress error = stderrors.New("cache refresh in progress")

type RefreshService struct {
Expand Down
4 changes: 3 additions & 1 deletion internal/clientcache/internal/daemon/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ func Test_openStore(t *testing.T) {
require.NotNil(t, store)
assert.FileExists(t, tmpDir+"/test.db")
rw := db.New(store)
rw.Query(ctx, "select * from target", nil)
rows, err := rw.Query(ctx, "select * from target", nil)
require.NoError(t, err)
rows.Close()
})
t.Run("homedir", func(t *testing.T) {
tmpDir := t.TempDir()
Expand Down

0 comments on commit 51a2b20

Please sign in to comment.