This commit is contained in:
parent
1f7b4cede2
commit
8c8e360bf6
1 changed files with 1 additions and 4 deletions
|
|
@ -6,10 +6,7 @@ import (
|
|||
|
||||
func BoolFromForm(r *http.Request, k string) bool {
|
||||
s := r.PostFormValue(k)
|
||||
if s == "on" {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return s == "on"
|
||||
}
|
||||
|
||||
func PostFormValueOrNone(r *http.Request, k string) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue