mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
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:
@ -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()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user