Refresh Git cache and apply .gitignore
This commit is contained in:
@@ -93,10 +93,11 @@ func PollHandler(w http.ResponseWriter, r *http.Request) {
|
||||
// Parse boolean values
|
||||
var question1VotedBefore *bool
|
||||
if val := r.FormValue("question1_voted_before"); val != "" {
|
||||
if val == "true" {
|
||||
switch val {
|
||||
case "true":
|
||||
b := true
|
||||
question1VotedBefore = &b
|
||||
} else if val == "false" {
|
||||
case "false":
|
||||
b := false
|
||||
question1VotedBefore = &b
|
||||
}
|
||||
@@ -104,10 +105,11 @@ func PollHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
var question2VoteAgain *bool
|
||||
if val := r.FormValue("question2_vote_again"); val != "" {
|
||||
if val == "true" {
|
||||
switch val {
|
||||
case "true":
|
||||
b := true
|
||||
question2VoteAgain = &b
|
||||
} else if val == "false" {
|
||||
case "false":
|
||||
b := false
|
||||
question2VoteAgain = &b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user