Make sure we can create a .xcode.env.local (#46060)

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

Closures in ruby don't need the `return` statement. They exit from the calling function!

## Changelog
[Internal] - fix .xcode.env.local.generation

Reviewed By: cortinico

Differential Revision: D61343918

fbshipit-source-id: 39073ead7ad596f48403a5c2d4c066d410355698
This commit is contained in:
Riccardo Cipolleschi
2024-08-16 02:20:18 -07:00
committed by Facebook GitHub Bot
parent 1d1646afd1
commit e39aaf5da5
@@ -241,7 +241,7 @@ class ReactNativePodsUtils
node_binary = `type -a node`.split("\n").map { |path|
path.gsub!("node is ", "")
}.select { |b|
return !b.start_with?("/var")
!b.start_with?("/var")
}
node_binary = node_binary[0]