Skip to content

Commit

Permalink
Merge pull request #3210 from ebi-yade/patch-1
Browse files Browse the repository at this point in the history
remove a redundant error check
  • Loading branch information
marten-seemann authored Jun 24, 2021
2 parents a887f8f + f767474 commit e9d12b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e9d12b7

Please sign in to comment.