Merge pull request #5780 from thaJeztah/multierr_simplify

cli/command/stack/swarm: waitOnServices remove redundant check for multi-error
This commit is contained in:
Paweł Gronowski 2025-02-03 15:09:27 +00:00 committed by GitHub
commit 4771abac9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -292,10 +292,5 @@ func waitOnServices(ctx context.Context, dockerCli command.Cli, serviceIDs []str
errs = append(errs, fmt.Errorf("%s: %w", serviceID, err))
}
}
if len(errs) > 0 {
return errors.Join(errs...)
}
return nil
return errors.Join(errs...)
}