Skip to content

Commit

Permalink
Fix a typo by simplifying the code
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Jul 3, 2020
1 parent 9d6cffb commit 6b308c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/executor/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ package executor
import "github.com/loadimpact/k6/stats"

func sumMetricValues(samples chan stats.SampleContainer, metricName string) (sum float64) {
bufferedSmaples := stats.GetBufferedSamples(samples)
for _, sc := range bufferedSmaples {
for _, sc := range stats.GetBufferedSamples(samples) {
samples := sc.GetSamples()
for _, s := range samples {
if s.Metric.Name == metricName {
Expand Down

0 comments on commit 6b308c5

Please sign in to comment.