diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-09 12:50:27 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-16 18:41:25 -0700 |
commit | d0f4283fe47cbbe251eb34fee8657901374ff336 (patch) | |
tree | 55589ec4e6e9c425aec18850944209ecd79923fa /lib/chef/cookbook_site_streaming_uploader.rb | |
parent | 7037433634d0b02574d03a8465541ea2f49d3f39 (diff) | |
download | chef-d0f4283fe47cbbe251eb34fee8657901374ff336.tar.gz |
"fix" Lint/NestedMethodDefinition cops
these are all awful, but fixing them will be time consuming. by disabling
them on the existing offenses we can enable the cop to prevent more of this
creeping into the codebase.
Diffstat (limited to 'lib/chef/cookbook_site_streaming_uploader.rb')
-rw-r--r-- | lib/chef/cookbook_site_streaming_uploader.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook_site_streaming_uploader.rb b/lib/chef/cookbook_site_streaming_uploader.rb index 9fb8d0d4bc..760a48ab3a 100644 --- a/lib/chef/cookbook_site_streaming_uploader.rb +++ b/lib/chef/cookbook_site_streaming_uploader.rb @@ -149,11 +149,11 @@ class Chef alias :to_s :body # BUGBUG this makes the response compatible with what respsonse_steps expects to test headers (response.headers[] -> response[]) - def headers + def headers # rubocop:disable Lint/NestedMethodDefinition self end - def status + def status # rubocop:disable Lint/NestedMethodDefinition code.to_i end end |