Add return

This commit is contained in:
2025-01-13 21:37:28 +01:00
parent e8ced857e0
commit b9d6d25245

View File

@ -192,6 +192,7 @@ func (app *application) CreateVotes(w http.ResponseWriter, r *http.Request, id i
_, err := app.votes.Insert(voterIdentity, election.ID, c.ChoiceText, c.Tokens) _, err := app.votes.Insert(voterIdentity, election.ID, c.ChoiceText, c.Tokens)
if err != nil { if err != nil {
app.serverError(w, r, err) app.serverError(w, r, err)
return
} }
} }