Unverified Commit b7030166 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #70983 from xichengliudui/fix18111302

Delete some redundant code
parents a5887009 9a25d46e
......@@ -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)
}
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
}
w.WriteHeader(http.StatusGatewayTimeout)
return
}))
defer testServer.Close()
c := testRESTClient(t, testServer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment