Skip to content

Commit

Permalink
fixup! fix(artifacts): Resolving is broken in multiple places
Browse files Browse the repository at this point in the history
Signed-off-by: benjamin-j-powell <[email protected]>
  • Loading branch information
benjamin-j-powell committed Sep 18, 2023
1 parent d1a6960 commit 8d78af3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ public List<Artifact> getArtifactsForPipelineIdWithoutStageRef(
}

private List<String> getExpectedArtifactIdsFromMap(Map<String, Object> trigger) {
return Optional.ofNullable((List<String>) trigger.get("expectedArtifactIds"))
.orElse(emptyList());
List<String> expectedArtifactIds = trigger.get("expectedArtifactIds");
return (expectedArtifactIds != null) ? expectedArtifactIds : emptyList();
}

public void resolveArtifacts(Map pipeline) {
Expand Down

0 comments on commit 8d78af3

Please sign in to comment.