Compare commits

...
Author SHA1 Message Date
Devmate Bot 1010b4cb7a xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/AndroidInfoHelpers.kt
Reviewed By: rshest

Differential Revision: D80607535
2025-08-21 02:18:49 -07:00
@@ -123,7 +123,7 @@ public object AndroidInfoHelpers {
var lastLine = ""
var line: String?
while (reader.readLine().also { line = it } != null) {
lastLine = line ?: ""
lastLine = line.orEmpty()
}
metroHostPropValue = lastLine
} catch (e: Exception) {
@@ -133,6 +133,6 @@ public object AndroidInfoHelpers {
reader?.close()
process?.destroy()
}
return metroHostPropValue ?: ""
return metroHostPropValue.orEmpty()
}
}