Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f507343

Browse files
authored
Merge pull request kubernetes#68047 from niuzhenguo/remove-switch-break
Clean up unneeded break in switch
2 parents e69c735 + 7cef40c commit f507343

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
411411
actions = appendIf(actions, action{"WATCH", "watch/" + itemPath, nameParams, namer, false}, isWatcher)
412412
actions = appendIf(actions, action{"CONNECT", itemPath, nameParams, namer, false}, isConnecter)
413413
actions = appendIf(actions, action{"CONNECT", itemPath + "/{path:*}", proxyParams, namer, false}, isConnecter && connectSubpath)
414-
break
415414
default:
416415
namespaceParamName := "namespaces"
417416
// Handler for standard REST verbs (GET, PUT, POST and DELETE).
@@ -467,7 +466,6 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
467466
// DEPRECATED in 1.11
468467
actions = appendIf(actions, action{"WATCHLIST", "watch/" + resource, params, namer, true}, allowWatchList)
469468
}
470-
break
471469
}
472470

473471
// Create Routes for the actions.

0 commit comments

Comments
 (0)