mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Run codespell on code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -402,7 +402,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
|
||||
// Docker's newer clients popuates `cacheFrom` and `cacheTo` parameter
|
||||
// by default as empty array for all commands but buildah's design of
|
||||
// distributed cache expects this to be a repo not image hence parse
|
||||
// only the first populated repo and igore if empty array.
|
||||
// only the first populated repo and ignore if empty array.
|
||||
// Read more here: https://github.com/containers/podman/issues/15928
|
||||
// TODO: Remove this when buildah's API is extended.
|
||||
compatIgnoreForcedCacheOptions := func(queryStr string) string {
|
||||
|
||||
@ -246,7 +246,7 @@ func ConfDirPrefix() (string, error) {
|
||||
// will not delete certain catastrophic paths.
|
||||
func GuardedRemoveAll(path string) error {
|
||||
if path == "" || path == "/" {
|
||||
return fmt.Errorf("refusing to recusively delete `%s`", path)
|
||||
return fmt.Errorf("refusing to recursively delete `%s`", path)
|
||||
}
|
||||
return os.RemoveAll(path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user