Fix linter warnings on windows

This commit is contained in:
Patrick Pacher 2020-08-11 15:34:29 +02:00
parent b3657e17ce
commit 8840c88903
No known key found for this signature in database
GPG key ID: E8CD2DA160925A6D
4 changed files with 5 additions and 3 deletions

View file

@ -19,8 +19,6 @@ import (
"golang.org/x/sys/windows/svc/mgr" "golang.org/x/sys/windows/svc/mgr"
) )
const exeSuffix = ".exe"
func init() { func init() {
rootCmd.AddCommand(installCmd) rootCmd.AddCommand(installCmd)
installCmd.AddCommand(installService) installCmd.AddCommand(installService)

View file

@ -88,7 +88,7 @@ service:
return ssec, errno return ssec, errno
} }
func runService(cmd *cobra.Command, opts *Options, cmdArgs []string) error { func runService(_ *cobra.Command, opts *Options, cmdArgs []string) error {
// check if we are running interactively // check if we are running interactively
isDebug, err := svc.IsAnInteractiveSession() isDebug, err := svc.IsAnInteractiveSession()
if err != nil { if err != nil {

View file

@ -1,3 +1,5 @@
// +build linux
// Package nfqexp contains a nfqueue library experiment. // Package nfqexp contains a nfqueue library experiment.
package nfqexp package nfqexp

View file

@ -1,3 +1,5 @@
// +build linux
package nfqexp package nfqexp
import ( import (