mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-04 16:40:21 +00:00
client-go: refactor: Fix styling issues (#107248)
* client-go: Remove unreachable return Due to the way the switch statement is done, the return at the end of the function will neverbe reached. Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com> * client-go: Refactor for clarity Fixed one instance where the error message should be lowercase. Made the fields in the struct literal more explicit Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com> Kubernetes-commit: 75c0987de3cb9a0380873745f68dea2f0835a7a2
This commit is contained in:
committed by
Kubernetes Publisher
parent
3618ec55f4
commit
664b1a6c8c
1
tools/cache/reflector_test.go
vendored
1
tools/cache/reflector_test.go
vendored
@@ -813,7 +813,6 @@ func TestReflectorFullListIfExpired(t *testing.T) {
|
||||
t.Error(err)
|
||||
return nil, err
|
||||
}
|
||||
return nil, nil
|
||||
},
|
||||
}
|
||||
r := NewReflector(lw, &v1.Pod{}, s, 0)
|
||||
|
Reference in New Issue
Block a user