Skip to content

Commit 35daa07

Browse files
cipolleschiblakef
authored andcommitted
Make sure we can create a .xcode.env.local (#46060)
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
1 parent c22803a commit 35daa07

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/scripts/cocoapods

1 file changed

+1
-1
lines changed

packages/react-native/scripts/cocoapods/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def self.create_xcode_env_if_missing(file_manager: File)
241241
node_binary = `type -a node`.split("\n").map { |path|
242242
path.gsub!("node is ", "")
243243
}.select { |b|
244-
return !b.start_with?("/var")
244+
!b.start_with?("/var")
245245
}
246246

247247
node_binary = node_binary[0]

0 commit comments

Comments
 (0)