mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Make a naked return less naked
This commit is contained in:
parent
d284864c87
commit
dad302144d
|
@ -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 ===
|
||||
|
|
Loading…
Reference in a new issue