Fix tests and linter warnings

This commit is contained in:
Daniel 2022-02-01 13:12:46 +01:00
parent 7d2cd6c15d
commit f59ad0357a
162 changed files with 668 additions and 696 deletions

View file

@ -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: