Unverified Commit a4aab0e1 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

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

Remove useless named return value
parents 13705ac8 2e560e79
......@@ -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{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment