mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Fix linter warnings on windows
This commit is contained in:
parent
b3657e17ce
commit
8840c88903
4 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build linux
|
||||||
|
|
||||||
// Package nfqexp contains a nfqueue library experiment.
|
// Package nfqexp contains a nfqueue library experiment.
|
||||||
package nfqexp
|
package nfqexp
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build linux
|
||||||
|
|
||||||
package nfqexp
|
package nfqexp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
Loading…
Add table
Reference in a new issue