Skip to content

Commit

Permalink
Add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Bunde-Pedersen authored and jonathanbp committed Mar 26, 2021
1 parent 45c9d51 commit 8ffa042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/docs/mapping/binary_file_uploads.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func handleBinaryFileUpload(w http.ResponseWriter, rq *http.Request, params map[
f, header, err := rq.FormFile("attachment")
if err != nil {
http.Error(w, fmt.Sprintf("failed to get file 'attachment': %s", err.Error()), http.StatusBadRequest)
return
}
defer f.Close()

Expand Down

0 comments on commit 8ffa042

Please sign in to comment.