Fix tests and linters

This commit is contained in:
Daniel
2022-02-02 12:48:42 +01:00
parent f2fcad4d11
commit 60d8664e7b
171 changed files with 944 additions and 874 deletions

View File

@@ -5,8 +5,9 @@ import (
"strconv"
"time"
"github.com/safing/portbase/log"
"golang.org/x/sync/singleflight"
"github.com/safing/portbase/log"
)
const (
@@ -76,5 +77,5 @@ func getSpecialProcess(ctx context.Context, template *Process) *Process {
process.Save()
return process, nil
})
return p.(*Process)
return p.(*Process) // nolint:forcetypeassert // Can only be a *Process.
}