Skip to content

Commit a6f54ec

Browse files
committed
Merge pull request #45156 from quaff
* pr/45156: Polish ternary operator Closes gh-45156
2 parents b40fb62 + 0a1c906 commit a6f54ec

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/Image.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public List<LayerId> getLayers() {
9191
* @return the image OS
9292
*/
9393
public String getOs() {
94-
return (!StringUtils.hasText(this.os)) ? "linux" : this.os;
94+
return (StringUtils.hasText(this.os)) ? this.os : "linux";
9595
}
9696

9797
/**

0 commit comments

Comments
 (0)