lib/resources/xinetd.rb in inspec-1.22.0 vs lib/resources/xinetd.rb in inspec-1.23.0
- old
+ new
@@ -55,10 +55,10 @@
if !file.file?
return skip_resource "Can't find file \"#{path}\""
end
@contents[path] = file.content
- if @contents[path].empty? && !file.empty?
+ if @contents[path].nil? || @contents[path].empty?
return skip_resource "Can't read file \"#{path}\""
end
@contents[path]
end