Add return
This commit is contained in:
@ -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)
|
||||
if err != nil {
|
||||
app.serverError(w, r, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user