From 68439fd44a83fc09f272b139ad2ddecf0263b13b Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 23 Jan 2025 09:49:13 +0900 Subject: [PATCH] refactor: fix a lint error --- pkg/vacuum/client_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/vacuum/client_test.go b/pkg/vacuum/client_test.go index a70b7a5c7..3245ed9ac 100644 --- a/pkg/vacuum/client_test.go +++ b/pkg/vacuum/client_test.go @@ -13,9 +13,10 @@ import ( "github.com/spf13/afero" ) +const rootDir = "/home/foo/.local/share/aquaproj-aqua" + func TestClient_Create(t *testing.T) { //nolint:dupl t.Parallel() - rootDir := "/home/foo/.local/share/aquaproj-aqua" data := []struct { name string pkgPath string @@ -77,7 +78,6 @@ func TestClient_Create(t *testing.T) { //nolint:dupl func TestClient_Update(t *testing.T) { //nolint:dupl t.Parallel() - rootDir := "/home/foo/.local/share/aquaproj-aqua" data := []struct { name string pkgPath string @@ -139,7 +139,6 @@ func TestClient_Update(t *testing.T) { //nolint:dupl func TestClient_Remove(t *testing.T) { t.Parallel() - rootDir := "/home/foo/.local/share/aquaproj-aqua" data := []struct { name string pkgPath string @@ -184,7 +183,6 @@ func TestClient_Remove(t *testing.T) { func TestClient_FindAll(t *testing.T) { t.Parallel() - rootDir := "/home/foo/.local/share/aquaproj-aqua" data := []struct { name string files map[string]string