Skip to content

Commit

Permalink
Merge pull request docker#5780 from thaJeztah/multierr_simplify
Browse files Browse the repository at this point in the history
cli/command/stack/swarm: waitOnServices remove redundant check for multi-error
  • Loading branch information
vvoland authored Feb 3, 2025
2 parents d68c4d8 + dea59ea commit 4771aba
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cli/command/stack/swarm/deploy_composefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

0 comments on commit 4771aba

Please sign in to comment.