Skip to content

Commit

Permalink
back out syntatic sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed Nov 28, 2024
1 parent 841a4e0 commit f1ea47c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.62.2
version: v1.55.2

# Give the job more time to execute.
# Regarding `--whole-files`, the linter is supposed to support linting of changed a patch only but,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/metricbeat/module/benchmark/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
// format. It publishes the event which is then forwarded to the output. In case
// of an error set the Error field of mb.Event or simply call report.Error().
func (m *MetricSet) Fetch(report mb.ReporterV2) error {
for range m.eventsPerFetch {
for i := uint(0); i < m.eventsPerFetch; i++ {
report.Event(mb.Event{
MetricSetFields: mapstr.M{
"counter": m.counter,
Expand Down

0 comments on commit f1ea47c

Please sign in to comment.