small reformat of code for language_codes

This commit is contained in:
InsanusMokrassar committed 2021-08-04 11:11:43 +06:00
1 parent e89e2c931d
commit dafc50c463
2 files changed
+2 -1022

No files matched your search

@@ -73,10 +73,8 @@ private fun printLanguageCodeAndTags(
parent: Tag? = null,
indents: String = " "
): String = if (tag.subtags.isEmpty()) {
"""
${indents}${baseClassSerializerAnnotationName}
${indents}object ${tag.title} : ${parent ?.title ?.let { "$it()" } ?: baseClassName} { override val code: String = "${tag.tag}" }
"""
"""${indents}${baseClassSerializerAnnotationName}
${indents}object ${tag.title} : ${parent ?.title ?.let { "$it()" } ?: baseClassName} { override val code: String = "${tag.tag}" }"""
} else {
"""
${indents}${baseClassSerializerAnnotationName}