diff --git a/packages/react-native/scripts/cocoapods/utils.rb b/packages/react-native/scripts/cocoapods/utils.rb index 64fe78b87ed..706e6f344ba 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]