Skip to content

Commit 7d05ba8

Browse files
committed
fix: FakeBool treats mistakes as false
Change-Id: I1033aff5f3ded974257a3ef8c882b684a26efbc8
1 parent 9c4f0fb commit 7d05ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagexpr.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ func FakeBool(v interface{}) bool {
701701
return r != ""
702702
case bool:
703703
return r
704-
case nil:
704+
case nil, error:
705705
return false
706706
default:
707707
return true

0 commit comments

Comments
 (0)