summaryrefslogtreecommitdiff
path: root/lib/chef/resource.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-03-06 09:56:31 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-03-06 09:56:31 -0800
commit9e679b833c2a3203a12102f9a1b024f87d0b23f2 (patch)
treee6e5946d5b37a88b7550e73282bf785ce283f961 /lib/chef/resource.rb
parent95510896fdf938be5e8631b96719053805e04ec2 (diff)
downloadchef-lcg/unused_method_argument.tar.gz
fix Lint/UnusedMethodArgumentlcg/unused_method_argument
appends '_' to all unused method arguments, autogenerated from rubocop.
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r--lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index 2df73a52e8..48fa9ba1d6 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -617,7 +617,7 @@ class Chef
# as_json does most of the to_json heavy lifted. It exists here in case activesupport
# is loaded. activesupport will call as_json and skip over to_json. This ensure
# json is encoded as expected
- def as_json(*a)
+ def as_json(*_a)
safe_ivars = instance_variables.map { |ivar| ivar.to_sym } - FORBIDDEN_IVARS
instance_vars = Hash.new
safe_ivars.each do |iv|