Skip to content

Commit c4f1f7c

Browse files
qwwdfsadAbdullinAM
authored andcommitted
Fix formatting of KotlinInputAstVisitor
1 parent 1809ab7 commit c4f1f7c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/main/java/com/facebook/ktfmt/format/KotlinInputAstVisitor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,8 @@ open class KotlinInputAstVisitor(
22402240
visit(psi)
22412241
}
22422242

2243-
val shouldForceBreak = forceAnnotationBreaks &&
2243+
val shouldForceBreak =
2244+
forceAnnotationBreaks &&
22442245
// don't force break on parameter annotations
22452246
list.parent !is KtParameter &&
22462247
// don't force break on receiver type annotations

core/src/test/java/com/facebook/ktfmt/cli/ParsedArgsTest.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,9 @@ class ParsedArgsTest {
289289

290290
@Test
291291
fun `processArgs use the @file option with non existing file`() {
292-
val e =
293-
assertThrows<FileNotFoundException> {
294-
ParsedArgs.processArgs(arrayOf("@non-existing-file"))
295-
}
292+
val e = assertThrows<FileNotFoundException> {
293+
ParsedArgs.processArgs(arrayOf("@non-existing-file"))
294+
}
296295
assertContains(e.message, "non-existing-file")
297296
}
298297

0 commit comments

Comments
 (0)