linter: couple fixes

This commit is contained in:
Zach Ramsay
2017-10-03 12:18:21 -04:00
parent 2681f32bdd
commit cf49ba876f
5 changed files with 18 additions and 27 deletions

View File

@ -8,7 +8,6 @@ import (
"os"
"os/signal"
"strings"
"syscall"
)
var (
@ -18,7 +17,7 @@ var (
func TrapSignal(cb func()) {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
signal.Notify(c, syscall.SIGTERM)
signal.Notify(c, os.Kill) // nolint: megacheck
go func() {
for sig := range c {
fmt.Printf("captured %v, exiting...\n", sig)