Skip to content

Commit 3e41c7c

Browse files
committed
fix(lint) fix linting errors
1 parent d36a7e2 commit 3e41c7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/pkg/flags/secret.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77

88
"github.com/spf13/cobra"
99
"github.com/spf13/pflag"
10-
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
1110

1211
"github.com/stackitcloud/stackit-cli/internal/pkg/print"
12+
"github.com/stackitcloud/stackit-cli/internal/pkg/types"
1313
)
1414

1515
type secretFlag struct {
@@ -19,7 +19,6 @@ type secretFlag struct {
1919
name string
2020
}
2121

22-
2322
func SecretFlag(name string, params *types.CmdParams) *secretFlag {
2423
f := &secretFlag{
2524
printer: params.Printer,

internal/pkg/flags/secret_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"testing/fstest"
77

88
"github.com/spf13/cobra"
9+
910
"github.com/stackitcloud/stackit-cli/internal/pkg/testparams"
1011
"github.com/stackitcloud/stackit-cli/internal/pkg/utils"
1112
)
@@ -80,7 +81,7 @@ func TestSecretFlag(t *testing.T) {
8081
t.Parallel()
8182
params := testparams.NewTestParams()
8283
if tt.file != nil {
83-
params.CmdParams.Fs = fstest.MapFS{
84+
params.Fs = fstest.MapFS{
8485
tt.file.path: &fstest.MapFile{
8586
Data: []byte(tt.file.content),
8687
},

0 commit comments

Comments
 (0)