diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-02-13 09:52:10 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-02-13 09:52:10 -0800 |
commit | 404a9bc88be538769c6c80b3b31f39a6582991d2 (patch) | |
tree | 2f8795e5f64153440c22a522d669c235a627f289 /lib/chef/audit | |
parent | b949a48acc21d4b64869bd7b834708d5232b1f2a (diff) | |
download | chef-404a9bc88be538769c6c80b3b31f39a6582991d2.tar.gz |
fix specs: RedundantReturn, RedundantSelf, RedundantBegin
department of redundancy department
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/audit')
-rw-r--r-- | lib/chef/audit/audit_event_proxy.rb | 4 | ||||
-rw-r--r-- | lib/chef/audit/control_group_data.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/audit/audit_event_proxy.rb b/lib/chef/audit/audit_event_proxy.rb index c4d67fa8f4..25ff31ecb1 100644 --- a/lib/chef/audit/audit_event_proxy.rb +++ b/lib/chef/audit/audit_event_proxy.rb @@ -78,14 +78,14 @@ class Chef # We know all of our examples each live in a top-level `control_group` block - get this name now outermost_group_desc = describe_groups.shift - return outermost_group_desc, { + [outermost_group_desc, { :name => example.description, :desc => example.full_description, :resource_type => resource_type, :resource_name => resource_name, :context => describe_groups, :line_number => example.metadata[:line_number], - } + }] end end diff --git a/lib/chef/audit/control_group_data.rb b/lib/chef/audit/control_group_data.rb index 4dffbdf3dd..476ebe95e9 100644 --- a/lib/chef/audit/control_group_data.rb +++ b/lib/chef/audit/control_group_data.rb @@ -118,7 +118,7 @@ class Chef def initialize(control_data = {}) control_data.each do |k, v| - self.instance_variable_set("@#{k}", v) + instance_variable_set("@#{k}", v) end end |