Merge pull request #8649 from hakman/last-static-check

Fix node-authorizer/pkg/server staticcheck failure
This commit is contained in:
Kubernetes Prow Robot 2020-02-28 04:56:39 -08:00 committed by GitHub
commit 27f16d7687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -1 +0,0 @@
node-authorizer/pkg/server

View File

@ -118,7 +118,7 @@ func (n *NodeAuthorizer) Run() error {
}() }()
go func() { go func() {
c := make(chan os.Signal) c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGINT) signal.Notify(c, syscall.SIGINT)
errs <- fmt.Errorf("received termination signal: %s", <-c) errs <- fmt.Errorf("received termination signal: %s", <-c)
}() }()