Skip to content

Commit

Permalink
Fixed rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tuahk committed Mar 9, 2015
1 parent aee3d74 commit 98fa599
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions libraries/prometheus_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion spec/unit/recipes/source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,4 @@
expect(chef_run).to render_file("#{chef_run.node['bluepill']['conf_dir']}/prometheus.pill")
end
end

end

0 comments on commit 98fa599

Please sign in to comment.