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:
Ismayil Mirzali
2022-01-18 12:03:08 +02:00
committed by Kubernetes Publisher
parent 3618ec55f4
commit 664b1a6c8c
2 changed files with 3 additions and 4 deletions

View File

@@ -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)