everybody loves a refactor
This commit is contained in:
@@ -2,6 +2,7 @@ package validation
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"git.haelnorr.com/h/golib/hws"
|
||||
"git.haelnorr.com/h/oslstats/internal/notify"
|
||||
@@ -25,7 +26,7 @@ func (f *FormGetter) Get(key string) string {
|
||||
}
|
||||
|
||||
func (f *FormGetter) GetList(key string) []string {
|
||||
return f.r.Form[key]
|
||||
return strings.Split(f.Get(key), ",")
|
||||
}
|
||||
|
||||
func (f *FormGetter) getChecks() []*ValidationRule {
|
||||
|
||||
Reference in New Issue
Block a user