Polish "Only set imagePlatform if it has text"

See gh-43424
This commit is contained in:
Moritz Halbritter
2024-12-05 11:03:14 +01:00
parent fe1f9b3002
commit 4dca6ee5d3
2 changed files with 10 additions and 1 deletions

View File

@@ -295,7 +295,7 @@ public class Image {
if (StringUtils.hasText(this.applicationDirectory)) {
request = request.withApplicationDirectory(this.applicationDirectory);
}
if (!CollectionUtils.isEmpty(this.securityOptions)) {
if (this.securityOptions != null) {
request = request.withSecurityOptions(this.securityOptions);
}
if (StringUtils.hasText(this.imagePlatform)) {