Skip to content

Commit

Permalink
fix: File.exists() is deprecated and removed in Ruby 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rophy committed Feb 28, 2024
1 parent e242b00 commit d7c1588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/in_sql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def initialize(path)
require 'yaml'

@path = path
if File.exists?(@path)
if File.exist?(@path)
@data = YAML.load_file(@path)
if @data == false || @data == []
# this happens if an users created an empty file accidentally
Expand Down

0 comments on commit d7c1588

Please sign in to comment.