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):
114
114
},
115
115
]
116
116
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'
120
118
121
119
if installGo :
122
120
baseGoVersionExpr = '>=1.21.0'
@@ -138,9 +136,7 @@ def writeHeader(checkStream):
138
136
}
139
137
})
140
138
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'
144
140
145
141
if installJava :
146
142
baseJavaVersionExpr = '17'
You can’t perform that action at this time.
0 commit comments