Merge pull request #129 from safing/fix/linter-windows

Fix linter warnings on windows
This commit is contained in:
Daniel 2020-08-11 15:56:37 +02:00 committed by GitHub
commit 27c00f71bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

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

View file

@ -88,7 +88,7 @@ service:
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
isDebug, err := svc.IsAnInteractiveSession()
if err != nil {

View file

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

View file

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