From e39aaf5da502ddb102d56ccf76c717d264b0a63f Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 16 Aug 2024 02:20:18 -0700 Subject: [PATCH] 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 --- packages/react-native/scripts/cocoapods/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/cocoapods/utils.rb b/packages/react-native/scripts/cocoapods/utils.rb index c88b48b2ce7..5b60353ac98 100644 --- a/packages/react-native/scripts/cocoapods/utils.rb +++ b/packages/react-native/scripts/cocoapods/utils.rb @@ -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]