Skip to content

Commit 5c74577

Browse files
committed
clean up
1 parent 9602441 commit 5c74577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/writer/java/GoogleFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ open class GoogleFormatter: SourceFormatter {
3939
}
4040

4141
return StringBuilder()
42-
.append(formatted.substring(0, index))
42+
.append(formatted.take(index))
4343
.append("\n}\n")
4444
.toString()
4545
}

0 commit comments

Comments
 (0)