diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-20 07:16:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 07:16:35 -0400 |
commit | 916d8231c52eb89fae9982c63a956388fca648c2 (patch) | |
tree | 335652b32332e57e092a1bbf80914517190f136e /pkg/api/handlers/compat/images_build.go | |
parent | 1916fe22a932183e0847e9f7b087f6ece4d7c48c (diff) | |
parent | 5b79cf15a0226dc3dad5053615ee652823376cd3 (diff) | |
download | podman-916d8231c52eb89fae9982c63a956388fca648c2.tar.gz podman-916d8231c52eb89fae9982c63a956388fca648c2.tar.bz2 podman-916d8231c52eb89fae9982c63a956388fca648c2.zip |
Merge pull request #14297 from jwhonce/wip/swagger
Swagger refactor/cleanup
Diffstat (limited to 'pkg/api/handlers/compat/images_build.go')
-rw-r--r-- | pkg/api/handlers/compat/images_build.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/images_build.go b/pkg/api/handlers/compat/images_build.go index 1a0ac6801..bcd102901 100644 --- a/pkg/api/handlers/compat/images_build.go +++ b/pkg/api/handlers/compat/images_build.go @@ -776,7 +776,7 @@ func extractTarFile(r *http.Request) (string, error) { } path := filepath.Join(anchorDir, "tarBall") - tarBall, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600) + tarBall, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o600) if err != nil { return "", err } @@ -790,7 +790,7 @@ func extractTarFile(r *http.Request) (string, error) { } buildDir := filepath.Join(anchorDir, "build") - err = os.Mkdir(buildDir, 0700) + err = os.Mkdir(buildDir, 0o700) if err != nil { return "", err } |