diff --git a/shared/src/main/scala/io/kaitai/struct/translators/NimTranslator.scala b/shared/src/main/scala/io/kaitai/struct/translators/NimTranslator.scala index f82e00eb7..328315502 100644 --- a/shared/src/main/scala/io/kaitai/struct/translators/NimTranslator.scala +++ b/shared/src/main/scala/io/kaitai/struct/translators/NimTranslator.scala @@ -38,7 +38,7 @@ class NimTranslator(provider: TypeProvider, importList: ImportList) extends Base case _ => s"this.${doName(s)}" } override def doIfExp(condition: expr, ifTrue: expr, ifFalse: expr): String = - s"(if ${translate(condition)}: ${translate(ifTrue)} else: ${translate(ifFalse)})" + s"if ${translate(condition)}: ${translate(ifTrue)} else: ${translate(ifFalse)}" override def arraySubscript(container: expr, idx: expr): String = s"${translate(container)}[${translate(idx)}]"