Merge pull request #45156 from quaff

* pr/45156:
  Polish ternary operator

Closes gh-45156
This commit is contained in:
Phillip Webb 2025-04-11 09:19:10 -07:00
commit a6f54ec5ea
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class Image extends MappedObject {
* @return the image OS
*/
public String getOs() {
return (!StringUtils.hasText(this.os)) ? "linux" : this.os;
return (StringUtils.hasText(this.os)) ? this.os : "linux";
}
/**