Skip to content

Commit 32fd2cb

Browse files
Replace deprecated exists in podhelper.rb (#141169)
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
1 parent 0cef3f1 commit 32fd2cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter_tools/bin/podhelper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def flutter_relative_path_from_podfile(path)
327327

328328
def flutter_parse_xcconfig_file(file)
329329
file_abs_path = File.expand_path(file)
330-
if !File.exists? file_abs_path
330+
if !File.exist? file_abs_path
331331
return [];
332332
end
333333
entries = Hash.new
@@ -346,7 +346,7 @@ def flutter_parse_xcconfig_file(file)
346346

347347
def flutter_get_local_engine_dir(xcconfig_file)
348348
file_abs_path = File.expand_path(xcconfig_file)
349-
if !File.exists? file_abs_path
349+
if !File.exist? file_abs_path
350350
return nil
351351
end
352352
config = flutter_parse_xcconfig_file(xcconfig_file)

0 commit comments

Comments
 (0)