mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-22 13:17:07 +00:00
Delete some redundant code
Delete some redundant code Kubernetes-commit: 9a25d46e8b5c079d97b909bb6e0bc1c1399c3e8c
This commit is contained in:
parent
77c598ed24
commit
c2d0ac0df3
@ -1195,7 +1195,6 @@ func IsValidPathSegmentPrefix(name string) []string {
|
||||
func ValidatePathSegmentName(name string, prefix bool) []string {
|
||||
if prefix {
|
||||
return IsValidPathSegmentPrefix(name)
|
||||
} else {
|
||||
}
|
||||
return IsValidPathSegmentName(name)
|
||||
}
|
||||
}
|
||||
|
@ -1218,10 +1218,9 @@ func TestBackoffLifecycle(t *testing.T) {
|
||||
if count == 5 || count == 9 {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
return
|
||||
} else {
|
||||
}
|
||||
w.WriteHeader(http.StatusGatewayTimeout)
|
||||
return
|
||||
}
|
||||
}))
|
||||
defer testServer.Close()
|
||||
c := testRESTClient(t, testServer)
|
||||
|
Loading…
Reference in New Issue
Block a user