lint: remove unnecessary conditional
Some checks failed
/ golint (push) Failing after 3m52s

This commit is contained in:
Eli Ribble 2026-05-19 15:25:15 +00:00
parent 1f7b4cede2
commit 8c8e360bf6
No known key found for this signature in database

View file

@ -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 {