Skip to content

Commit 645bbd4

Browse files
committed
Fix redundant True / False
1 parent 3119b35 commit 645bbd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pr-checks/sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def writeHeader(checkStream):
116116

117117
installGo = False
118118
if checkSpecification.get('installGo'):
119-
installGo = True if checkSpecification['installGo'].lower() == "true" else False
119+
installGo = checkSpecification.get('installGo').lower() == 'true'
120120

121121
if installGo:
122122
baseGoVersionExpr = '>=1.21.0'
@@ -140,7 +140,7 @@ def writeHeader(checkStream):
140140

141141
installJava = False
142142
if checkSpecification.get('installJava'):
143-
installJava = True if checkSpecification['installJava'].lower() == "true" else False
143+
installJava = checkSpecification.get('installJava').lower() == 'true'
144144

145145
if installJava:
146146
baseJavaVersionExpr = '17'

0 commit comments

Comments
 (0)