Skip to content

Commit

Permalink
Return after sending an error if currentAsset is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashkumar committed Jul 15, 2021
1 parent 4783fef commit d6499a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func Download(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {

if currentAsset == nil {
sendErrorWithCode(w, "Unable to find a release asset for your platform in the latest release.", 400)
return
}

log.Printf("User-Agent: %s", r.Header.Get("User-Agent"))
Expand Down

0 comments on commit d6499a7

Please sign in to comment.