fix staticcheck failures on vendor/k8s.io/apiserver/pkg/endpoints
Kubernetes-commit: c38a06bca6bb360caf9bc679ba19a5a4be662bd1
This commit is contained in:
parent
aca5ec6703
commit
4785d0d3e4
|
@ -356,11 +356,7 @@ type SimpleRESTStorage struct {
|
|||
requestedResourceVersion string
|
||||
requestedResourceNamespace string
|
||||
|
||||
// The id requested, and location to return for ResourceLocation
|
||||
requestedResourceLocationID string
|
||||
resourceLocation *url.URL
|
||||
resourceLocationTransport http.RoundTripper
|
||||
expectedResourceNamespace string
|
||||
expectedResourceNamespace string
|
||||
|
||||
// If non-nil, called inside the WorkFunc when answering update, delete, create.
|
||||
// obj receives the original input to the update, delete, or create call.
|
||||
|
|
|
@ -922,7 +922,7 @@ func runWatchHTTPBenchmark(b *testing.B, items []example.Pod) {
|
|||
go func() {
|
||||
defer response.Body.Close()
|
||||
if _, err := io.Copy(ioutil.Discard, response.Body); err != nil {
|
||||
b.Fatal(err)
|
||||
b.Error(err)
|
||||
}
|
||||
wg.Done()
|
||||
}()
|
||||
|
@ -962,7 +962,7 @@ func BenchmarkWatchWebsocket(b *testing.B) {
|
|||
go func() {
|
||||
defer ws.Close()
|
||||
if _, err := io.Copy(ioutil.Discard, ws); err != nil {
|
||||
b.Fatal(err)
|
||||
b.Error(err)
|
||||
}
|
||||
wg.Done()
|
||||
}()
|
||||
|
@ -1011,7 +1011,7 @@ func BenchmarkWatchProtobuf(b *testing.B) {
|
|||
go func() {
|
||||
defer response.Body.Close()
|
||||
if _, err := io.Copy(ioutil.Discard, response.Body); err != nil {
|
||||
b.Fatal(err)
|
||||
b.Error(err)
|
||||
}
|
||||
wg.Done()
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue