diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-23 11:36:29 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-23 11:36:29 -0800 |
commit | f17fc92d3b8400cc91bfd384c5bf39fd40bdf5b1 (patch) | |
tree | c034024fd7fd216dcc3dfd8f0d3fa95ced5a89f6 /lib/chef/knife.rb | |
parent | 271d3e4f91e3d158c9112512ac75d0ca51fc928d (diff) | |
download | chef-f17fc92d3b8400cc91bfd384c5bf39fd40bdf5b1.tar.gz |
remove unused block argumentslcg/chefstyle-perf
Diffstat (limited to 'lib/chef/knife.rb')
-rw-r--r-- | lib/chef/knife.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife.rb b/lib/chef/knife.rb index 71127b5b57..1c2c88e540 100644 --- a/lib/chef/knife.rb +++ b/lib/chef/knife.rb @@ -510,7 +510,7 @@ class Chef response.body end - def create_object(object, pretty_name = nil, object_class: nil, &block) + def create_object(object, pretty_name = nil, object_class: nil) output = edit_data(object, object_class: object_class) if Kernel.block_given? @@ -526,7 +526,7 @@ class Chef output(output) if config[:print_after] end - def delete_object(klass, name, delete_name = nil, &block) + def delete_object(klass, name, delete_name = nil) confirm("Do you really want to delete #{name}") if Kernel.block_given? |