Remove useless named return value

This cleans up the useless named return value stopCh at
SetupSignalHandler().
This commit is contained in:
Zhenguo Niu 2018-08-02 19:28:17 +08:00
parent 23111ad414
commit 2e560e797e

View File

@ -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{})