Skip to content

Commit

Permalink
remove alias for 'current'
Browse files Browse the repository at this point in the history
  • Loading branch information
avereha committed Sep 25, 2020
1 parent 73c8459 commit cb6a45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expr/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func SummarizeValues(f string, values []float64) (float64, bool, error) {
rv = av
}
}
case "last", "current":
case "last":
if len(values) > 0 {
rv = values[len(values)-1]
}
Expand Down

0 comments on commit cb6a45f

Please sign in to comment.