Skip to content

Commit f9ba09d

Browse files
generatedunixname1430061942044674meta-codesync[bot]
authored andcommitted
Daily arc lint --take KTFMT (#57322)
Summary: Pull Request resolved: #57322 Differential Revision: D109548796 fbshipit-source-id: cafd8f9dde536aa94fdf77d58f13a12ba41dc126
1 parent 18cf6b3 commit f9ba09d

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

  • packages

packages/gradle-plugin/shared/src/main/kotlin/com/facebook/react/utils/JsonUtils.kt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ object JsonUtils {
2323
fun fromAutolinkingConfigJson(input: File): ModelAutolinkingConfigJson? =
2424
input.bufferedReader().use { reader ->
2525
runCatching {
26-
// We sanitize the output of the `config` command as it could contain debug logs
27-
// such as:
28-
//
29-
// > AwesomeProject@0.0.1 npx
30-
// > rnc-cli config
31-
//
32-
// which will render the JSON invalid.
33-
val content =
34-
reader
35-
.readLines()
36-
.filterNot { line -> line.startsWith(">") }
37-
.joinToString("\n")
38-
.trim()
39-
gsonConverter.fromJson(content, ModelAutolinkingConfigJson::class.java)
40-
}
26+
// We sanitize the output of the `config` command as it could contain debug logs
27+
// such as:
28+
//
29+
// > AwesomeProject@0.0.1 npx
30+
// > rnc-cli config
31+
//
32+
// which will render the JSON invalid.
33+
val content =
34+
reader
35+
.readLines()
36+
.filterNot { line -> line.startsWith(">") }
37+
.joinToString("\n")
38+
.trim()
39+
gsonConverter.fromJson(content, ModelAutolinkingConfigJson::class.java)
40+
}
4141
.getOrNull()
4242
}
4343
}

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,10 @@ internal class MountItemDispatcher(
412412
}
413413

414414
return buildList {
415-
do {
416-
queue.poll()?.let { add(it) }
417-
} while (queue.isNotEmpty())
418-
}
415+
do {
416+
queue.poll()?.let { add(it) }
417+
} while (queue.isNotEmpty())
418+
}
419419
.takeIf { it.isNotEmpty() }
420420
}
421421

0 commit comments

Comments
 (0)