Skip to content

Commit f568c9b

Browse files
generatedunixname537391475639613facebook-github-bot
authored andcommitted
xplat/js/react-native-github/packages/gradle-plugin/shared-testutil/src/main/kotlin/com/facebook/react/tests/OsRule.kt (#53655)
Summary: Pull Request resolved: #53655 Reviewed By: cortinico Differential Revision: D82008708 fbshipit-source-id: 9ba77512a5e6e7749981726d739d88df287a63d3
1 parent 9689094 commit f568c9b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • packages/gradle-plugin/shared-testutil/src/main/kotlin/com/facebook/react/tests

packages/gradle-plugin/shared-testutil/src/main/kotlin/com/facebook/react/tests/OsRule.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class OsRule : TestRule {
2525
override fun evaluate() {
2626
val annotation = description.annotations.filterIsInstance<WithOs>().firstOrNull()
2727

28-
annotation?.os?.propertyName?.let {
28+
annotation?.os?.propertyName?.let { osName ->
2929
retainOs = System.getProperty(OS_NAME_KEY)
30-
System.setProperty(OS_NAME_KEY, it)
30+
System.setProperty(OS_NAME_KEY, osName)
3131
}
32-
annotation?.arch?.let {
33-
if (it.isNotBlank()) {
32+
annotation?.arch?.let { arch ->
33+
if (arch.isNotBlank()) {
3434
retainArch = System.getProperty(OS_ARCH_KEY)
35-
System.setProperty(OS_ARCH_KEY, it)
35+
System.setProperty(OS_ARCH_KEY, arch)
3636
}
3737
}
3838
try {

0 commit comments

Comments
 (0)