lib/fluent/plugin/in_sql.rb in fluent-plugin-sql-2.3.0 vs lib/fluent/plugin/in_sql.rb in fluent-plugin-sql-2.3.1
- old
+ new
@@ -280,10 +280,10 @@
class StateStore
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
@data = {}
elsif !@data.is_a?(Hash)