Skip to content

Commit

Permalink
Fix checking if both properties are used
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Nov 30, 2023
1 parent 8bfdf04 commit 2d53e77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,6 @@ private void removeImage(String imageId) {
}

private boolean mixesBothProperties() {
return this.images.isPresent() && this.getImageId().isPresent();
return !this.images.get().isEmpty() && java.util.Optional.ofNullable(this.getImageId().getOrNull()).isPresent();
}
}

0 comments on commit 2d53e77

Please sign in to comment.