Skip to content

Commit

Permalink
Make sure we can create a .xcode.env.local (#46060)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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
  • Loading branch information
cipolleschi authored and blakef committed Aug 19, 2024
1 parent c22803a commit 35daa07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native/scripts/cocoapods/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def self.create_xcode_env_if_missing(file_manager: File)
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]
Expand Down

0 comments on commit 35daa07

Please sign in to comment.