Skip to content

Commit

Permalink
test: revive comment for older ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Mar 9, 2021
1 parent 06469de commit 6606a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugin/test_in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def cleanup_directory(path)
begin
FileUtils.rm_f(path, secure:true)
rescue ArgumentError
FileUtils.rm_f(path)
FileUtils.rm_f(path) # For Ruby 2.6 or before.
end
if File.exist?(path)
FileUtils.remove_entry_secure(path, true)
Expand Down Expand Up @@ -76,7 +76,7 @@ def cleanup_file(path)
begin
FileUtils.rm_f(path, secure: true)
rescue ArgumentError
FileUtils.rm_f(path)
FileUtils.rm_f(path) # For Ruby 2.6 or before.
end
if File.exist?(path)
FileUtils.remove_entry_secure(path, true)
Expand Down

0 comments on commit 6606a33

Please sign in to comment.