Skip to content

Commit

Permalink
refactor: fix a lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Jan 23, 2025
1 parent e8a4c72 commit 68439fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/vacuum/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 68439fd

Please sign in to comment.