forked from quic-go/quic-go
Merge pull request #3210 from ebi-yade/patch-1
remove a redundant error check
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user