Skip to content

Commit

Permalink
GODRIVER-3111 Combine the identical if-else branches in bson/primitiv…
Browse files Browse the repository at this point in the history
…e/decimal.go (#1531)
  • Loading branch information
chengfang authored and qingyang-hu committed Feb 12, 2024
1 parent 27f5e47 commit fcaeddd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bson/primitive/decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ func (d Decimal128) BigInt() (*big.Int, int, error) {

// Would be handled by the logic below, but that's trivial and common.
if high == 0 && low == 0 && exp == 0 {
if posSign {
return new(big.Int), 0, nil
}
return new(big.Int), 0, nil
}

Expand Down

0 comments on commit fcaeddd

Please sign in to comment.