mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Fix some go nits.
This commit is contained in:
@@ -97,7 +97,7 @@ func (o *saveOptions) Complete(fsys fs.FileSystem) error {
|
||||
if fsys.IsDir(o.saveDirectory) {
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("%s is not a directory. Please use a different directory name.", o.saveDirectory)
|
||||
return fmt.Errorf("%s is not a directory", o.saveDirectory)
|
||||
}
|
||||
|
||||
// RunSave saves the default transformer configurations local directory
|
||||
|
||||
@@ -61,7 +61,7 @@ func TestComplete(t *testing.T) {
|
||||
},
|
||||
{
|
||||
dir: "/some/file",
|
||||
expect: fmt.Errorf("%s is not a directory. Please use a different directory name.", "/some/file"),
|
||||
expect: fmt.Errorf("%s is not a directory", "/some/file"),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user