From adb36c72bd2794c84be709edeb4ef8941c6db23a Mon Sep 17 00:00:00 2001 From: Evan Yin Date: Wed, 4 Aug 2021 00:03:41 -0700 Subject: [PATCH] Fix lint --- src/query/graphite/native/builtin_functions.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/query/graphite/native/builtin_functions.go b/src/query/graphite/native/builtin_functions.go index 8304da8029..441f804dad 100644 --- a/src/query/graphite/native/builtin_functions.go +++ b/src/query/graphite/native/builtin_functions.go @@ -1041,9 +1041,8 @@ func (impl *exponentialMovingAverageImpl) Evaluate( func roundTo(n float64, decimals int32) float64 { if decimals < 0 { return math.Round(n/math.Pow(10, math.Abs(float64(decimals)))) * math.Pow(10, math.Abs(float64(decimals))) - } else { - return math.Round(n*math.Pow(10, float64(decimals))) / math.Pow(10, float64(decimals)) } + return math.Round(n*math.Pow(10, float64(decimals))) / math.Pow(10, float64(decimals)) } // totalFunc takes an index and returns a total value for that index