Skip to content

Commit 973067e

Browse files
jmoirongm42
authored andcommitted
remove dangling else from jmoiron#254
1 parent 752831c commit 973067e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

types/types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ type BitBool bool
114114
func (b BitBool) Value() (driver.Value, error) {
115115
if b {
116116
return []byte{1}, nil
117-
} else {
118-
return []byte{0}, nil
119117
}
118+
return []byte{0}, nil
120119
}
121120

122121
// Scan implements the sql.Scanner interface,

0 commit comments

Comments
 (0)