ci: Upgrade golangci-lint version to one that handles Go 1.18 (#2841)

* ci: Upgrade golangci-lint version to one that handles Go 1.18

* Fix proxyd lint
This commit is contained in:
Matthew Slipper 2022-06-22 22:45:26 -06:00 committed by GitHub
parent 35e71fd5cb
commit 614366aa5b

@ -231,9 +231,7 @@ func (m *MockBackend) Requests() []*RecordedRequest {
m.mtx.RLock()
defer m.mtx.RUnlock()
out := make([]*RecordedRequest, len(m.requests))
for i := 0; i < len(m.requests); i++ {
out[i] = m.requests[i]
}
copy(out, m.requests)
return out
}