Skip to content

Commit

Permalink
Simplify powSeriesLists
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Jul 21, 2020
1 parent b7e3f93 commit 948b3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expr/functions/seriesList/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (f *seriesList) Do(ctx context.Context, e parser.Expr, from, until int64, v
case "diffSeriesLists":
compute = func(l, r float64) float64 { return l - r }
case "powSeriesLists":
compute = func(l, r float64) float64 { return math.Pow(l, r) }
compute = math.Pow
}

if useConstant {
Expand Down

0 comments on commit 948b3bc

Please sign in to comment.