Skip to content

Commit eb4ce32

Browse files
authored
GODRIVER-3111 Combine the identical if-else branches in bson/primitive/decimal.go (#1531)
1 parent 0d46ef9 commit eb4ce32

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bson/primitive/decimal.go

-3
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@ func (d Decimal128) BigInt() (*big.Int, int, error) {
164164

165165
// Would be handled by the logic below, but that's trivial and common.
166166
if high == 0 && low == 0 && exp == 0 {
167-
if posSign {
168-
return new(big.Int), 0, nil
169-
}
170167
return new(big.Int), 0, nil
171168
}
172169

0 commit comments

Comments
 (0)