Skip to content

Commit

Permalink
Remove unnecessary var
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaptoss committed Oct 9, 2024
1 parent cc83382 commit 7b34baa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/service/handlers/submit_bonus_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ func SubmitBonusCode(w http.ResponseWriter, r *http.Request) {
return
}

var bonus *data.BonusCode

// never panic because of auth validation
nullifier := UserClaims(r)[0].Nullifier

Expand All @@ -53,7 +51,7 @@ func SubmitBonusCode(w http.ResponseWriter, r *http.Request) {
return
}

bonus, err = BonusCodesQ(r).FilterByID(bonusCode).Get()
bonus, err := BonusCodesQ(r).FilterByID(bonusCode).Get()
if err != nil {
log.WithError(err).Error("Failed to get bonus code")
ape.RenderErr(w, problems.InternalError())
Expand Down

0 comments on commit 7b34baa

Please sign in to comment.