From 1485a862053fb20ade1f93bb82c6918cd4078975 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 7 Jul 2020 15:19:21 -0700 Subject: Avoid assigning variables before returning if we don't have to These seemed pretty straight forward. There's a new Rubocop cop for these. Signed-off-by: Tim Smith --- lib/chef/chef_fs/data_handler/organization_data_handler.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/chef/chef_fs') diff --git a/lib/chef/chef_fs/data_handler/organization_data_handler.rb b/lib/chef/chef_fs/data_handler/organization_data_handler.rb index f107e8920b..01d227ffaf 100644 --- a/lib/chef/chef_fs/data_handler/organization_data_handler.rb +++ b/lib/chef/chef_fs/data_handler/organization_data_handler.rb @@ -5,14 +5,13 @@ class Chef module DataHandler class OrganizationDataHandler < DataHandlerBase def normalize(organization, entry) - result = normalize_hash(organization, { + normalize_hash(organization, { "name" => entry.org, "full_name" => entry.org, "org_type" => "Business", "clientname" => "#{entry.org}-validator", "billing_plan" => "platform-free", }) - result end def preserve_key?(key) -- cgit v1.2.1