Merge pull request #3210 from ebi-yade/patch-1

remove a redundant error check
This commit is contained in:
Marten Seemann 2021-06-24 09:17:41 -07:00 committed by GitHub
commit e9d12b7f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,9 +121,7 @@ func setupHandler(www string) http.Handler {
err = errors.New("couldn't get uploaded file size")
}
}
if err != nil {
utils.DefaultLogger.Infof("Error receiving upload: %#v", err)
}
utils.DefaultLogger.Infof("Error receiving upload: %#v", err)
}
io.WriteString(w, `<html><body><form action="/demo/upload" method="post" enctype="multipart/form-data">
<input type="file" name="uploadfile"><br>