diff --git a/tools/parse.go b/tools/parse.go index 021c6a2..e69c476 100644 --- a/tools/parse.go +++ b/tools/parse.go @@ -24,11 +24,7 @@ func ParseString(in string) any { if null.MatchString(s) { return nil } else if yesno.MatchString(s) { - if yes.MatchString(s) { - return true - } else { - return false - } + return yes.MatchString(s) } else if i, err := strconv.Atoi(s); err == nil { return i } else if f, err := strconv.ParseFloat(s, 64); err == nil {