diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 16:14:29 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 16:16:45 -0700 |
commit | 866dd363f6fa8e7e8e3bacd55f4ba02a67dd240e (patch) | |
tree | 31c3a9fe7c00841d30b024ac62e36c72880f4601 /lib | |
parent | 1909f56148ce8f56777234d651dde1824f1017b0 (diff) | |
download | chef-866dd363f6fa8e7e8e3bacd55f4ba02a67dd240e.tar.gz |
fix bugs from Style/SymbolArray autocorrect cop
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource_collection.rb | 4 | ||||
-rw-r--r-- | lib/chef/resource_collection/resource_list.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index 54ffd5ae66..3b6ff4297e 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob (<adam@chef.io>) # Author:: Christopher Walters (<cw@chef.io>) -# Copyright:: Copyright 2008-2016, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -87,7 +87,7 @@ class Chef # Read-only methods are simple to delegate - doing that below resource_list_methods = Enumerable.instance_methods + - %i{iterator all_resources \[\] each execute_each_resource each_index empty?} - + %i{iterator all_resources [] each execute_each_resource each_index empty?} - [:find] # find overridden below resource_set_methods = %i{resources keys validate_lookup_spec!} diff --git a/lib/chef/resource_collection/resource_list.rb b/lib/chef/resource_collection/resource_list.rb index 5ea018a3e8..afd80799a1 100644 --- a/lib/chef/resource_collection/resource_list.rb +++ b/lib/chef/resource_collection/resource_list.rb @@ -36,7 +36,7 @@ class Chef private :resources # Delegate direct access methods to the @resources array # 4 extra methods here are not included in the Enumerable's instance methods - direct_access_methods = Enumerable.instance_methods + %i{\[\] each each_index empty?} + direct_access_methods = Enumerable.instance_methods + %i{[] each each_index empty?} def_delegators :resources, *(direct_access_methods) def initialize |