Skip to content

Commit a3dce94

Browse files
committed
Fix some go nits.
1 parent 51ece94 commit a3dce94

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/commands/build/build_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func TestBuild(t *testing.T) {
8181
updateKustomizeExpected := os.Getenv(updateEnvVar) == "true"
8282
fSys := fs.MakeRealFS()
8383

84-
testcases := []string{}
84+
var testcases []string
8585
filepath.Walk("testdata", func(path string, info os.FileInfo, err error) error {
8686
if err != nil {
8787
return err

pkg/commands/misc/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (o *saveOptions) Complete(fsys fs.FileSystem) error {
9797
if fsys.IsDir(o.saveDirectory) {
9898
return nil
9999
}
100-
return fmt.Errorf("%s is not a directory. Please use a different directory name.", o.saveDirectory)
100+
return fmt.Errorf("%s is not a directory", o.saveDirectory)
101101
}
102102

103103
// RunSave saves the default transformer configurations local directory

pkg/commands/misc/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestComplete(t *testing.T) {
6161
},
6262
{
6363
dir: "/some/file",
64-
expect: fmt.Errorf("%s is not a directory. Please use a different directory name.", "/some/file"),
64+
expect: fmt.Errorf("%s is not a directory", "/some/file"),
6565
},
6666
}
6767

0 commit comments

Comments
 (0)