mirror of
https://github.com/containers/podman.git
synced 2025-06-03 03:07:56 +08:00
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>
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user