mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-23 21:57:30 +00:00
Merge pull request #70983 from xichengliudui/fix18111302
Delete some redundant code Kubernetes-commit: b7030166144bf2f4fd4a71514b4f3e04273270ce
This commit is contained in:
commit
23e9999aee
@ -1195,7 +1195,6 @@ func IsValidPathSegmentPrefix(name string) []string {
|
|||||||
func ValidatePathSegmentName(name string, prefix bool) []string {
|
func ValidatePathSegmentName(name string, prefix bool) []string {
|
||||||
if prefix {
|
if prefix {
|
||||||
return IsValidPathSegmentPrefix(name)
|
return IsValidPathSegmentPrefix(name)
|
||||||
} else {
|
|
||||||
return IsValidPathSegmentName(name)
|
|
||||||
}
|
}
|
||||||
|
return IsValidPathSegmentName(name)
|
||||||
}
|
}
|
||||||
|
@ -1218,10 +1218,9 @@ func TestBackoffLifecycle(t *testing.T) {
|
|||||||
if count == 5 || count == 9 {
|
if count == 5 || count == 9 {
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
return
|
return
|
||||||
} else {
|
|
||||||
w.WriteHeader(http.StatusGatewayTimeout)
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
w.WriteHeader(http.StatusGatewayTimeout)
|
||||||
|
return
|
||||||
}))
|
}))
|
||||||
defer testServer.Close()
|
defer testServer.Close()
|
||||||
c := testRESTClient(t, testServer)
|
c := testRESTClient(t, testServer)
|
||||||
|
Loading…
Reference in New Issue
Block a user