Skip to content

Commit 490e612

Browse files
committed
fix: File.exists() is deprecated and removed in Ruby 3.2.0
Signed-off-by: Rophy Tsai <rophy@users.noreply.github.com>
1 parent 8561b7f commit 490e612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/plugin/in_sql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def initialize(path)
282282
require 'yaml'
283283

284284
@path = path
285-
if File.exists?(@path)
285+
if File.exist?(@path)
286286
@data = YAML.load_file(@path)
287287
if @data == false || @data == []
288288
# this happens if an users created an empty file accidentally

0 commit comments

Comments
 (0)