Skip to content

Commit dc2838b

Browse files
applied pr feedback
1 parent 7724793 commit dc2838b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/regnosys/rosetta/generator/python/expressions/PythonExpressionGenerator.xtend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ class PythonExpressionGenerator {
202202
isSwitchCond=false
203203

204204
var expr = generateExpression(c.expression, 0, false)
205-
205+
if (isSwitchCond) return expr
206206
var blocks = (ifCondBlocks.isEmpty()) ? "" : ''' «FOR arg : ifCondBlocks»«arg»«ENDFOR»'''
207-
return isSwitchCond ? expr : '''«blocks» return «expr»
207+
return '''«blocks» return «expr»
208208
'''
209209
}
210210

0 commit comments

Comments
 (0)