From 98fa59953d475e81f38e62175ee976df5da22e1a Mon Sep 17 00:00:00 2001 From: tuahk Date: Mon, 9 Mar 2015 22:52:47 +0200 Subject: [PATCH] Fixed rubocop warnings --- libraries/prometheus_helper.rb | 4 +--- spec/unit/recipes/source_spec.rb | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/prometheus_helper.rb b/libraries/prometheus_helper.rb index 4830d42..8a2d9f8 100644 --- a/libraries/prometheus_helper.rb +++ b/libraries/prometheus_helper.rb @@ -2,9 +2,7 @@ def generate_flags config = '' node['prometheus']['flags'].each do |flag_key, flag_value| - unless flag_value == '' - config += "-#{flag_key}=#{flag_value} " - end + config += "-#{flag_key}=#{flag_value} " if flag_value != '' end config end diff --git a/spec/unit/recipes/source_spec.rb b/spec/unit/recipes/source_spec.rb index d5c39e9..85ee2d7 100644 --- a/spec/unit/recipes/source_spec.rb +++ b/spec/unit/recipes/source_spec.rb @@ -87,5 +87,4 @@ expect(chef_run).to render_file("#{chef_run.node['bluepill']['conf_dir']}/prometheus.pill") end end - end