Delete some redundant code

Delete some redundant code
This commit is contained in:
xichengliudui 2018-11-13 03:28:31 -05:00
parent 27cf50d85e
commit 9a25d46e8b
2 changed files with 3 additions and 5 deletions

View File

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

View File

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