Skip to content

Commit 0a1c906

Browse files
quaffphilwebb
authored andcommitted
Polish ternary operator
See gh-45156 Signed-off-by: Yanming Zhou <[email protected]>
1 parent b40fb62 commit 0a1c906

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

Diff for: 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)