Fix linter errors

This commit is contained in:
Daniel
2023-04-25 14:37:29 +02:00
parent 34e035858d
commit 5bb2813459
14 changed files with 17 additions and 14 deletions

View File

@@ -4,13 +4,12 @@ import (
"fmt"
"time"
processInfo "github.com/shirou/gopsutil/process"
"github.com/spf13/cobra"
"github.com/safing/portmaster/network/packet"
"github.com/safing/portmaster/network/socket"
"github.com/safing/portmaster/network/state"
processInfo "github.com/shirou/gopsutil/process"
)
func init() {

View File

@@ -17,7 +17,7 @@ import (
)
func initializeLogFile(logFilePath string, identifier string, version string) *os.File {
logFile, err := os.OpenFile(logFilePath, os.O_RDWR|os.O_CREATE, 0o0440)
logFile, err := os.OpenFile(logFilePath, os.O_RDWR|os.O_CREATE, 0o0440) //nolint:gosec // As desired.
if err != nil {
log.Printf("failed to create log file %s: %s\n", logFilePath, err)
return nil