diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-20 11:54:46 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-10-20 11:54:46 -0700 |
commit | d0dbda11796e819d4a640f9ee58d5a308a109a19 (patch) | |
tree | 7b0879c74125f62cf18f79c0e4597904318882e5 /lib/chef/application/client.rb | |
parent | ec534aa0fce2c0199bf622a06eeb2c291185cdee (diff) | |
download | chef-d0dbda11796e819d4a640f9ee58d5a308a109a19.tar.gz |
fixes for rubocop 0.44.1 enginelcg/rubocop-0.44.1
a few cops we have enabled got a little more accurate/stricter
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/application/client.rb')
-rw-r--r-- | lib/chef/application/client.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/application/client.rb b/lib/chef/application/client.rb index cbaa494b71..000aff905b 100644 --- a/lib/chef/application/client.rb +++ b/lib/chef/application/client.rb @@ -202,7 +202,7 @@ class Chef::Application::Client < Chef::Application :short => "-o RunlistItem,RunlistItem...", :long => "--override-runlist RunlistItem,RunlistItem...", :description => "Replace current run list with specified items for a single run", - :proc => lambda {|items| + :proc => lambda { |items| items = items.split(",") items.compact.map do |item| Chef::RunList::RunListItem.new(item) @@ -213,7 +213,7 @@ class Chef::Application::Client < Chef::Application :short => "-r RunlistItem,RunlistItem...", :long => "--runlist RunlistItem,RunlistItem...", :description => "Permanently replace current run list with specified items", - :proc => lambda {|items| + :proc => lambda { |items| items = items.split(",") items.compact.map do |item| Chef::RunList::RunListItem.new(item) |