small reformat of code for language_codes

This commit is contained in:
InsanusMokrassar 2021-08-04 11:11:43 +06:00
parent e89e2c931d
commit dafc50c463
2 changed files with 2 additions and 1022 deletions

View File

@ -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}