Skip to content

Commit

Permalink
Replace deprecated exists in podhelper.rb (#141169)
Browse files Browse the repository at this point in the history
The recently landed flutter/flutter#140222 accidentally used the deprecated `exists?` instead of the non-deprecated `exist?` (which other code in this file is already, correctly, using).

Fixes flutter/flutter#141167
  • Loading branch information
stuartmorgan authored Jan 9, 2024
1 parent 0cef3f1 commit 32fd2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/flutter_tools/bin/podhelper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def flutter_relative_path_from_podfile(path)

def flutter_parse_xcconfig_file(file)
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
if !File.exist? file_abs_path
return [];
end
entries = Hash.new
Expand All @@ -346,7 +346,7 @@ def flutter_parse_xcconfig_file(file)

def flutter_get_local_engine_dir(xcconfig_file)
file_abs_path = File.expand_path(xcconfig_file)
if !File.exists? file_abs_path
if !File.exist? file_abs_path
return nil
end
config = flutter_parse_xcconfig_file(xcconfig_file)
Expand Down

0 comments on commit 32fd2cb

Please sign in to comment.