aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-08-11 15:20:39 -0400
committerGalen Guyer <galen@galenguyer.com>2022-08-11 15:20:39 -0400
commit41d74d0c2284b14e7d5cacc522f3000b86176e66 (patch)
treed30f82a02583958c42df62fb74f1abb84c1314ba
parent8a4af84c69e90ec8410693072f90e44fb2ac5eb8 (diff)
Stupid go not enforcing returns on errors smh
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 2ddf04e..f491d68 100644
--- a/main.go
+++ b/main.go
@@ -163,6 +163,7 @@ func main() {
// If the user can't vote, just show them results
if !canVote(claims.UserInfo.Groups) {
c.Redirect(302, "/results/"+poll.Id)
+ return
}
if !poll.Open {