mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
18cf6b3c13
commit
f9ba09d60e
2 files changed
+19
-19
No files matched your search
+15
-15
@@ -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()
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -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() }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user