FerretDB
FerretDB copied to clipboard
Refactor checks for weird `float64` values
(might be merged into #1151)
We have a code similar to value != math.Trunc(value) || math.IsNaN(value) || math.IsInf(value, 0) in many places. At least in internal/handlers/common it could be refactored to use GetWholeNumberParam.