From 9927e14bbf44db9a9eb7da723276427851a8e41e Mon Sep 17 00:00:00 2001 From: Eshton Robateau Date: Fri, 24 Nov 2023 07:29:48 +0800 Subject: [PATCH] remove dead line --- pgtype/numeric.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pgtype/numeric.go b/pgtype/numeric.go index b4fd12bc2..dc844f2d3 100644 --- a/pgtype/numeric.go +++ b/pgtype/numeric.go @@ -762,7 +762,6 @@ func (scanPlanTextAnyToNumericScanner) Scan(src []byte, dst any) error { if strings.ContainsAny(string(src), "eE") { if bigF, ok := new(big.Float).SetString(string(src)); ok { smallF, _ := bigF.Float64() - src = []byte(strconv.FormatFloat(smallF, 'f', -1, int(bigF.Prec()))) } }