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:
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user