Skip to content

Commit 4771aba

Browse files
authored
Merge pull request #5780 from thaJeztah/multierr_simplify
cli/command/stack/swarm: waitOnServices remove redundant check for multi-error
2 parents d68c4d8 + dea59ea commit 4771aba

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

cli/command/stack/swarm/deploy_composefile.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,5 @@ func waitOnServices(ctx context.Context, dockerCli command.Cli, serviceIDs []str
292292
errs = append(errs, fmt.Errorf("%s: %w", serviceID, err))
293293
}
294294
}
295-
296-
if len(errs) > 0 {
297-
return errors.Join(errs...)
298-
}
299-
300-
return nil
295+
return errors.Join(errs...)
301296
}

0 commit comments

Comments
 (0)