diff options
| author | Marcel Beck <marcel@beck.im> | 2019-05-02 18:56:57 +0200 |
|---|---|---|
| committer | Marcel Beck <marcel@beck.im> | 2019-05-02 19:02:56 +0200 |
| commit | b65e14e1fda1c005a07ec9b98e746ce3d699521a (patch) | |
| tree | d141336079455501063b2c11c70fcfd0057d2978 /cmd | |
| parent | 20937becaa32cdec93e77a84ad04c73e9155b8e7 (diff) | |
chore: Switch from gometalinter to golangci-lint
Github Issue: #546
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gomplate/main.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/gomplate/main.go b/cmd/gomplate/main.go index 3c125c7d..e2d77da0 100644 --- a/cmd/gomplate/main.go +++ b/cmd/gomplate/main.go @@ -77,12 +77,10 @@ func postRunExec(cmd *cobra.Command, args []string) error { signal.Notify(sigs) go func() { // Pass signals to the sub-process - select { - case sig := <-sigs: - if c.Process != nil { - // nolint: gosec - c.Process.Signal(sig) - } + sig := <-sigs + if c.Process != nil { + // nolint: gosec + _ = c.Process.Signal(sig) } }() |
