From 7c93217f5c6b2eb8830ddc1d6ed395f567832af6 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 29 Sep 2020 20:07:46 -0400 Subject: Lint fixes Signed-off-by: Dave Henderson --- conv/conv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conv') diff --git a/conv/conv.go b/conv/conv.go index 52a0fb57..4fa5db74 100644 --- a/conv/conv.go +++ b/conv/conv.go @@ -260,7 +260,7 @@ func ToFloat64(v interface{}) float64 { func strToInt64(str string) int64 { if strings.Contains(str, ",") { - str = strings.Replace(str, ",", "", -1) + str = strings.ReplaceAll(str, ",", "") } iv, err := strconv.ParseInt(str, 0, 64) if err != nil { @@ -277,7 +277,7 @@ func strToInt64(str string) int64 { func strToFloat64(str string) float64 { if strings.Contains(str, ",") { - str = strings.Replace(str, ",", "", -1) + str = strings.ReplaceAll(str, ",", "") } // this is inefficient, but it's the only way I can think of to // properly convert octal integers to floats -- cgit v1.2.3