linter: enable nilerr

A number of cases looked suspicious, so I marked them with `FIXME`s to
leave some breadcrumbs.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2022-03-21 14:49:47 +01:00
parent 081e091437
commit 0f12b6fe55
21 changed files with 47 additions and 33 deletions

View File

@ -28,7 +28,7 @@ func JoinErrors(errs []error) error {
finalErr := multiE.ErrorOrNil()
if finalErr == nil {
return finalErr
return nil
}
return errors.New(strings.TrimSpace(finalErr.Error()))
}