Skip to content

Commit

Permalink
Use File.exist? instead of File.exists?.
Browse files Browse the repository at this point in the history
File.exists? is deprecated in Ruby 2.1.0 and removed in Ruby 3.2.0.
  • Loading branch information
philr committed Jan 15, 2022
1 parent cf4a945 commit 324dcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ file_create tzdb_combined_path => [tzdb_path, tzdb_dir_path('code'), tzdb_dir_pa
Dir.entries(src_dir).each do |entry|
if entry != '.' && entry != '..'
dest_path = File.join(tmp_path, entry)
ln(File.join(src_dir, entry), dest_path) unless File.exists?(dest_path)
ln(File.join(src_dir, entry), dest_path) unless File.exist?(dest_path)
end
end
end
Expand Down

0 comments on commit 324dcf7

Please sign in to comment.