Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesycod committed Jun 9, 2024
1 parent f816a62 commit 6940e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/votes/endpoints/put_user_entity_votes/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func Route(d uapi.RouteData, r *http.Request) uapi.HttpResponse {
}

if vi.HasVoted {
// If !Multiple Votes
// lacking MultipleVotes means that there can only be one vote per user for the entity
if !vi.VoteInfo.MultipleVotes {
if vi.ValidVotes[0].Upvote == upvote {
return uapi.HttpResponse{
Expand Down

0 comments on commit 6940e76

Please sign in to comment.