Unverified Commit 32fd2cbf authored by stuartmorgan's avatar stuartmorgan Committed by GitHub

Replace deprecated `exists` in podhelper.rb (#141169)

The recently landed https://github.com/flutter/flutter/pull/140222 accidentally used the deprecated `exists?` instead of the non-deprecated `exist?` (which other code in this file is already, correctly, using).

Fixes https://github.com/flutter/flutter/issues/141167
parent 0cef3f16
...@@ -327,7 +327,7 @@ end ...@@ -327,7 +327,7 @@ end
def flutter_parse_xcconfig_file(file) def flutter_parse_xcconfig_file(file)
file_abs_path = File.expand_path(file) file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path if !File.exist? file_abs_path
return []; return [];
end end
entries = Hash.new entries = Hash.new
...@@ -346,7 +346,7 @@ end ...@@ -346,7 +346,7 @@ end
def flutter_get_local_engine_dir(xcconfig_file) def flutter_get_local_engine_dir(xcconfig_file)
file_abs_path = File.expand_path(xcconfig_file) file_abs_path = File.expand_path(xcconfig_file)
if !File.exists? file_abs_path if !File.exist? file_abs_path
return nil return nil
end end
config = flutter_parse_xcconfig_file(xcconfig_file) config = flutter_parse_xcconfig_file(xcconfig_file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment