Skip to content

Commit

Permalink
Checks if there is any error before returning errors array on deleteA…
Browse files Browse the repository at this point in the history
…rtifacts function
  • Loading branch information
dasansol92 committed Jun 23, 2023
1 parent 0f7ae0b commit cd628a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export class ManifestManager {
return [];
}
const errors = await this.artifactClient.bulkDeleteArtifacts(artifactIds);
if (errors) {
if (!isEmpty(errors)) {
return errors;
}
for (const artifactId of artifactIds) {
Expand Down

0 comments on commit cd628a2

Please sign in to comment.