summaryrefslogtreecommitdiff
path: root/lib/chef/dsl
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-18 15:59:16 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-18 15:59:16 -0800
commitf64cf7ddf79259a71c5adfdcd1ecba9b85122b01 (patch)
tree6e33ae32feb1e8acec42c8d0f06a1bb85de2233c /lib/chef/dsl
parentc9414338729decf217c8bfc37b1d405619c44331 (diff)
downloadchef-f64cf7ddf79259a71c5adfdcd1ecba9b85122b01.tar.gz
Chefstyle fixes identified with Rubocop 0.80
The new Rubocop detects more unnecessary returns. This fixes these ahead of time so we can roll out the new Rubocop engine without breaking builds later. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r--lib/chef/dsl/platform_introspection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/dsl/platform_introspection.rb b/lib/chef/dsl/platform_introspection.rb
index c0856c15cc..8cb625d9c9 100644
--- a/lib/chef/dsl/platform_introspection.rb
+++ b/lib/chef/dsl/platform_introspection.rb
@@ -90,9 +90,9 @@ class Chef
case key_matches.length
when 0
- return nil
+ nil
when 1
- return @values[platform][key_matches.first]
+ @values[platform][key_matches.first]
else
raise "Multiple matches detected for #{platform} with values #{@values}. The matches are: #{key_matches}"
end