From 60c3c7ad110dca38a7dd239f8d6ac81376002d65 Mon Sep 17 00:00:00 2001 From: Zilvinas Vilutis Date: Thu, 14 Nov 2024 09:43:25 -0800 Subject: [PATCH] .golangci.yml updated for go1.22 --- .golangci.yml | 6 ++++-- simulator/internal/simulator/simulator.go | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index e92ddd8..cb173b5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,9 +4,11 @@ run: build-tags: - integration modules-download-mode: readonly - go: '1.17' + go: '1.22' output: - format: tab:lint.txt + formats: + - format: tab + path: lint.txt print-issued-lines: false uniq-by-line: false sort-results: true diff --git a/simulator/internal/simulator/simulator.go b/simulator/internal/simulator/simulator.go index ca81717..cd1a1c6 100644 --- a/simulator/internal/simulator/simulator.go +++ b/simulator/internal/simulator/simulator.go @@ -71,7 +71,6 @@ func (s Simulator) Simulate() error { } for _, p := range policies { - p := p capacity := capacity eg.Go(func() error { return s.simulatePolicy(p, capacity)