From dad302144dd8e0c304f1b906cdfaa37c445074f9 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 9 Mar 2016 15:06:00 +0100 Subject: [PATCH] Make a naked return less naked --- promql/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promql/functions.go b/promql/functions.go index 0d3ec4195..433c06f02 100644 --- a/promql/functions.go +++ b/promql/functions.go @@ -548,7 +548,7 @@ func linearRegression(samples []model.SamplePair, interceptTime model.Time) (slo slope = covXY / varX intercept = sumY/n - slope*sumX/n - return + return slope, intercept } // === deriv(node model.ValMatrix) Vector ===