mirror of https://github.com/k3s-io/k3s
Merge pull request #66905 from niuzhenguo/remove-useless-named-return
Remove useless named return valuepull/58/head
commit
a4aab0e1e7
|
@ -26,7 +26,7 @@ var onlyOneSignalHandler = make(chan struct{})
|
|||
// 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
|
||||
// is terminated with exit code 1.
|
||||
func SetupSignalHandler() (stopCh <-chan struct{}) {
|
||||
func SetupSignalHandler() <-chan struct{} {
|
||||
close(onlyOneSignalHandler) // panics when called twice
|
||||
|
||||
stop := make(chan struct{})
|
||||
|
|
Loading…
Reference in New Issue