Skip to content

Commit c5ed233

Browse files
committed
NegatedBoolValue.String(): dispense with the special case first
1 parent 790d3af commit c5ed233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

negated_bool_value.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ func (v *NegatedBoolValue) Get() interface{} {
2424
func (v *NegatedBoolValue) String() string {
2525
if v == nil || v.value == nil {
2626
return "true"
27-
} else {
28-
return strconv.FormatBool(!*v.value)
2927
}
28+
29+
return strconv.FormatBool(!*v.value)
3030
}
3131

3232
func (v *NegatedBoolValue) Type() string {

0 commit comments

Comments
 (0)