minor style improvement

This commit is contained in:
Christoph Hartmann 2015-09-09 00:07:46 +01:00 committed by Dominik Richter
parent c081cfac82
commit db81929dd7

View file

@ -35,12 +35,12 @@ class AuditDaemonConf < Vulcano.resource(1)
# read the file
file = vulcano.file(@conf_path)
if !file.file?
return skip_resource "Can't find file \"#{@conf_path}\""
return skip_resource "Can't find file '#{@conf_path}'"
end
@content = file.content
if @content.empty? && file.size > 0
return skip_resource "Can't read file \"#{@conf_path}\""
return skip_resource "Can't read file '#{@conf_path}'"
end
# parse the file
@params = SimpleConfig.new(