mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Remove useless named return value
This cleans up the useless named return value stopCh at SetupSignalHandler().
This commit is contained in:
parent
23111ad414
commit
2e560e797e
@ -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
Block a user