♻️ Return bool directly
Silly me
This commit is contained in:
parent
306b2c597d
commit
e9c1bf7070
1 changed files with 1 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue