Merge pull request #66905 from niuzhenguo/remove-useless-named-return

Remove useless named return value
pull/58/head
k8s-ci-robot 2018-10-05 15:14:28 -07:00 committed by GitHub
commit a4aab0e1e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ var onlyOneSignalHandler = make(chan struct{})
// SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned // SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned
// which is closed on one of these signals. If a second signal is caught, the program // which is closed on one of these signals. If a second signal is caught, the program
// is terminated with exit code 1. // is terminated with exit code 1.
func SetupSignalHandler() (stopCh <-chan struct{}) { func SetupSignalHandler() <-chan struct{} {
close(onlyOneSignalHandler) // panics when called twice close(onlyOneSignalHandler) // panics when called twice
stop := make(chan struct{}) stop := make(chan struct{})