From 33b071ecfbc7e0a73f862778ff6c88a8ba896b97 Mon Sep 17 00:00:00 2001 From: Mingun Date: Thu, 11 Apr 2024 21:07:58 +0500 Subject: [PATCH] Revert "Translator: allow go, but not by default" - Go translator is no worse than others This reverts commit 0590480901f6074350800bd3b87b7420182b6cd7. --- .../main/scala/io/kaitai/struct/testtranslator/Main.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/translator/src/main/scala/io/kaitai/struct/testtranslator/Main.scala b/translator/src/main/scala/io/kaitai/struct/testtranslator/Main.scala index 99e8f77f1..bc8ebbd13 100644 --- a/translator/src/main/scala/io/kaitai/struct/testtranslator/Main.scala +++ b/translator/src/main/scala/io/kaitai/struct/testtranslator/Main.scala @@ -30,8 +30,6 @@ object Main extends App { "rust" ) - val ALL_GOOD_LANGS = ALL_LANGS.filterNot(_ == "go") - val INIT_OBJ_TYPE = "unique_top_level_container" val INIT_OBJ_NAME = "q1w2e3" @@ -61,7 +59,7 @@ object Main extends App { opt[String]('t', "target").unbounded().valueName("").action { (x, c) => if (x == "all") { - c.copy(targets = ALL_GOOD_LANGS) + c.copy(targets = ALL_LANGS) } else { c.copy(targets = c.targets :+ x) } @@ -95,7 +93,7 @@ object Main extends App { case None => System.exit(1) case Some(config0) => val config = if (config0.targets.isEmpty) { - config0.copy(targets = ALL_GOOD_LANGS) + config0.copy(targets = ALL_LANGS) } else { config0 }