Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Commit c18eb0c

Browse files
committed
Merge pull request #1 from sciurus/master
Use of blank? instead of nil? to check hash value
2 parents d1784c0 + af6d0e1 commit c18eb0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

definitions/collectd_plugin.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
owner "root"
2323
group "root"
2424
mode "644"
25-
if params[:template].blank?
25+
if params[:template].nil?
2626
source "plugin.conf.erb"
2727
cookbook params[:cookbook] || "collectd"
2828
else
@@ -45,7 +45,7 @@
4545
end
4646
retry
4747
end
48-
if not params[:path].blank?
48+
if not params[:path].nil?
4949
t.variables[:options][:paths] << params[:path]
5050
end
5151
t.variables[:options][:modules][params[:module] || params[:name]] = params[:options]

0 commit comments

Comments
 (0)