summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-06-16 11:11:53 +0200
committerValentin Rothberg <rothberg@redhat.com>2020-06-16 11:11:53 +0200
commitaf3c4d88b405adb0353f8085298d25e3a5937ee3 (patch)
tree43e5ac55a431fa23cc3f91c41680a472f8d411a5 /pkg/api/handlers/compat
parent2a565f49c2a7cfc4dbb2394d7ded786f20256234 (diff)
downloadpodman-af3c4d88b405adb0353f8085298d25e3a5937ee3.tar.gz
podman-af3c4d88b405adb0353f8085298d25e3a5937ee3.tar.bz2
podman-af3c4d88b405adb0353f8085298d25e3a5937ee3.zip
handlers/compat: fix lint error
Fix a lint error of an used parameter. The error must have sneaked in with a PR that was merged after the recent linter enablement. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/images_build.go4
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 399c104e9..913994f46 100644
--- a/pkg/api/handlers/compat/images_build.go
+++ b/pkg/api/handlers/compat/images_build.go
@@ -40,7 +40,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
}
}
- anchorDir, err := extractTarFile(r, w)
+ anchorDir, err := extractTarFile(r)
if err != nil {
utils.InternalServerError(w, err)
return
@@ -241,7 +241,7 @@ func BuildImage(w http.ResponseWriter, r *http.Request) {
})
}
-func extractTarFile(r *http.Request, w http.ResponseWriter) (string, error) {
+func extractTarFile(r *http.Request) (string, error) {
// build a home for the request body
anchorDir, err := ioutil.TempDir("", "libpod_builder")
if err != nil {