Skip to content

Commit d2935f3

Browse files
committed
refactor: remove deprecated method
`File.exists` is depreacted and was removed with ruby 3. https://ruby-doc.org/core-2.2.0/File.html#exist-3F-method
1 parent 0a7d4ae commit d2935f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

minitest/golf_plugin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def initialize(options)
2929

3030
lines = File.readlines('golf.rb')
3131

32-
if File.exists?('.team-name')
32+
if File.exist?('.team-name')
3333
@team_name = File.read('.team-name')
3434
else
3535
print "\n\nWelcome to Ruby Golf!\n\nBefore we run the tests, pick a name for your team: "

0 commit comments

Comments
 (0)