Skip to content

Commit 1c1f363

Browse files
Fix lints - use exist? as exists? is no longer available in Ruby 3.2
1 parent b32b244 commit 1c1f363

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/revalidate.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
exit 1
1111
end
1212

13-
if File.exists?("fred")
13+
if File.exist?("fred")
1414
puts "file 'fred' exists, delete it first"
1515
exit 1
1616
end
@@ -33,4 +33,3 @@
3333
puts "fred.width = #{image2.width}"
3434

3535
File.delete("fred")
36-

0 commit comments

Comments
 (0)