mirror of
https://github.com/safing/portbase
synced 2025-09-13 16:49:52 +00:00
Fix tests and linter warnings
This commit is contained in:
parent
7d2cd6c15d
commit
f59ad0357a
162 changed files with 668 additions and 696 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
var (
|
||||
errorReportingChannel chan *ModuleError
|
||||
reportToStdErr = true
|
||||
lastReportedError *ModuleError
|
||||
lastReportedError *ModuleError //nolint:errname
|
||||
reportingLock sync.Mutex
|
||||
)
|
||||
|
||||
|
@ -120,7 +120,7 @@ func (me *ModuleError) Report() {
|
|||
|
||||
// IsPanic returns whether the given error is a wrapped panic by the modules package and additionally returns it, if true.
|
||||
func IsPanic(err error) (bool, *ModuleError) {
|
||||
switch val := err.(type) {
|
||||
switch val := err.(type) { //nolint:errorlint // TODO: improve
|
||||
case *ModuleError:
|
||||
return true, val
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue