Daily arc lint --take KTFMT (#57322)

Summary: Pull Request resolved: https://github.com/react/react-native/pull/57322

Differential Revision: D109548796

fbshipit-source-id: cafd8f9dde536aa94fdf77d58f13a12ba41dc126
This commit is contained in:
generatedunixname1430061942044674 authored and meta-codesync[bot] committed 2026-06-24 06:24:52 -07:00
1 parent 18cf6b3c13
commit f9ba09d60e
2 files changed
+19 -19

No files matched your search

@@ -23,21 +23,21 @@ object JsonUtils {
fun fromAutolinkingConfigJson(input: File): ModelAutolinkingConfigJson? =
input.bufferedReader().use { reader ->
runCatching {
// We sanitize the output of the `config` command as it could contain debug logs
// such as:
//
// > AwesomeProject@0.0.1 npx
// > rnc-cli config
//
// which will render the JSON invalid.
val content =
reader
.readLines()
.filterNot { line -> line.startsWith(">") }
.joinToString("\n")
.trim()
gsonConverter.fromJson(content, ModelAutolinkingConfigJson::class.java)
}
// We sanitize the output of the `config` command as it could contain debug logs
// such as:
//
// > AwesomeProject@0.0.1 npx
// > rnc-cli config
//
// which will render the JSON invalid.
val content =
reader
.readLines()
.filterNot { line -> line.startsWith(">") }
.joinToString("\n")
.trim()
gsonConverter.fromJson(content, ModelAutolinkingConfigJson::class.java)
}
.getOrNull()
}
}
@@ -412,10 +412,10 @@ internal class MountItemDispatcher(
}
return buildList {
do {
queue.poll()?.let { add(it) }
} while (queue.isNotEmpty())
}
do {
queue.poll()?.let { add(it) }
} while (queue.isNotEmpty())
}
.takeIf { it.isNotEmpty() }
}