diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 15:13:58 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 15:13:58 -0700 |
commit | d7478e406d0bdcc15c8122fb7b4e39ad3208c9ac (patch) | |
tree | fd7eaa3d882d97d7013c57dda2886b9dbe7dd390 /lib/chef/resource_collection.rb | |
parent | e71560df5cebbfb209089c6255e37e65f0e34d95 (diff) | |
download | chef-d7478e406d0bdcc15c8122fb7b4e39ad3208c9ac.tar.gz |
Style/MethodCallWithoutArgsParentheses
zero args methods don't get parens.
this certainly reads better than the inverse.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource_collection.rb')
-rw-r--r-- | lib/chef/resource_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource_collection.rb b/lib/chef/resource_collection.rb index 31cc917a9f..54ffd5ae66 100644 --- a/lib/chef/resource_collection.rb +++ b/lib/chef/resource_collection.rb @@ -119,7 +119,7 @@ class Chef end def self.from_hash(o) - collection = new() + collection = new { "@resource_list" => "ResourceList", "@resource_set" => "ResourceSet" }.each_pair do |name, klass| obj = Chef::ResourceCollection.const_get(klass).from_hash(o["instance_vars"].delete(name)) collection.instance_variable_set(name.to_sym, obj) |