Skip to content

Commit 9395bd3

Browse files
committed
2.3.0-1.10.0-rc02-3
- Improves swiftformat from the output swift files
1 parent b14769d commit 9395bd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • kmp-composeuiviewcontroller-ksp/src/main/kotlin/com/github/guilhe/kmp/composeuiviewcontroller/ksp

kmp-composeuiviewcontroller-ksp/src/main/kotlin/com/github/guilhe/kmp/composeuiviewcontroller/ksp/Processor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ internal class Processor(
358358
}
359359
""".trimIndent()
360360
val indentedCode = indentParameters(indentParameters(code, frameworks), letParameters)
361-
val updatedCode = removeEmptyLineBetweenStructAndFunc(indentedCode)
361+
val updatedCode = if (letParameters.isEmpty()) removeEmptyLineBetweenStructAndFunc(indentedCode) else indentedCode
362362
codeGenerator
363363
.createNewFile(
364364
dependencies = Dependencies(true),

0 commit comments

Comments
 (0)