refactor: nested format string

This commit is contained in:
koba1t
2025-08-18 06:16:24 +09:00
parent caa42b7125
commit 785fce97df
3 changed files with 5 additions and 6 deletions

View File

@@ -4,7 +4,6 @@
package filesys
import (
"fmt"
"path/filepath"
"sigs.k8s.io/kustomize/kyaml/errors"
@@ -78,7 +77,7 @@ func ConfirmDir(fSys FileSystem, path string) (ConfirmedDir, error) {
return "", errors.WrapPrefixf(err, "not a valid directory")
}
if f != "" {
return "", errors.WrapPrefixf(errors.Errorf("file is not directory"), "%s", fmt.Sprintf("'%s'", path))
return "", errors.WrapPrefixf(errors.Errorf("file is not directory"), "'%s'", path)
}
return d, nil
}