♻️ 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) {
|
if null.MatchString(s) {
|
||||||
return nil
|
return nil
|
||||||
} else if yesno.MatchString(s) {
|
} else if yesno.MatchString(s) {
|
||||||
if yes.MatchString(s) {
|
return yes.MatchString(s)
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
} else if i, err := strconv.Atoi(s); err == nil {
|
} else if i, err := strconv.Atoi(s); err == nil {
|
||||||
return i
|
return i
|
||||||
} else if f, err := strconv.ParseFloat(s, 64); err == nil {
|
} else if f, err := strconv.ParseFloat(s, 64); err == nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue