♻️ Return bool directly

Silly me
This commit is contained in:
Dan Jones 2024-10-07 15:50:02 -05:00
commit e9c1bf7070

View file

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