summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-07-07 15:53:58 -0700
committerGitHub <noreply@github.com>2020-07-07 15:53:58 -0700
commite42b214c6c371558dd6de1eb02f89c91f9ce9340 (patch)
tree44b3c93e8af9e282a82eed362c6ed58c43c57462 /lib/chef/chef_fs
parent9b8baf4afa9575caf176bceab233407e221a56e7 (diff)
parent1485a862053fb20ade1f93bb82c6918cd4078975 (diff)
downloadchef-e42b214c6c371558dd6de1eb02f89c91f9ce9340.tar.gz
Merge pull request #10123 from chef/assignment
Avoid assigning variables before returning if we don't have to
Diffstat (limited to 'lib/chef/chef_fs')
-rw-r--r--lib/chef/chef_fs/data_handler/organization_data_handler.rb3
1 files changed, 1 insertions, 2 deletions
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)