lib/resources/mysql_conf.rb in inspec-1.13.0 vs lib/resources/mysql_conf.rb in inspec-1.14.0

- old
+ new

@@ -71,10 +71,10 @@ # skip if the main configuration file doesn't exist if !inspec.file(@conf_path).file? return skip_resource "Can't find file \"#{@conf_path}\"" end raw_conf = read_file(@conf_path) - if raw_conf.empty? && inspec.file(@conf_path).size > 0 + if raw_conf.empty? && !inspec.file(@conf_path).empty? return skip_resource("Can't read file \"#{@conf_path}\"") end to_read = [@conf_path] until to_read.empty?