File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,7 @@ def writeHeader(checkStream):
114114 },
115115 ]
116116
117- installGo = False
118- if checkSpecification .get ('installGo' ):
119- installGo = True if checkSpecification ['installGo' ].lower () == "true" else False
117+ installGo = checkSpecification .get ('installGo' , '' ).lower () == 'true'
120118
121119 if installGo :
122120 baseGoVersionExpr = '>=1.21.0'
@@ -138,9 +136,7 @@ def writeHeader(checkStream):
138136 }
139137 })
140138
141- installJava = False
142- if checkSpecification .get ('installJava' ):
143- installJava = True if checkSpecification ['installJava' ].lower () == "true" else False
139+ installJava = checkSpecification .get ('installJava' , '' ).lower () == 'true'
144140
145141 if installJava :
146142 baseJavaVersionExpr = '17'
You can’t perform that action at this time.
0 commit comments