summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-02-20 16:13:10 -0800
committerGitHub <noreply@github.com>2020-02-20 16:13:10 -0800
commit58d916108a8255a56cbb146e3846b44054371bc3 (patch)
tree55b7522e4dfea8a4912c07f1d24d210e4ad400c9 /spec
parent99f1f32340d023616182e03c7e477b80611190d3 (diff)
parentf64cf7ddf79259a71c5adfdcd1ecba9b85122b01 (diff)
downloadchef-58d916108a8255a56cbb146e3846b44054371bc3.tar.gz
Merge pull request #9374 from chef/chefstyle_fixes
Chefstyle fixes identified with Rubocop 0.80
Diffstat (limited to 'spec')
-rw-r--r--spec/support/platform_helpers.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb
index 7c2edc426d..c92b3dca39 100644
--- a/spec/support/platform_helpers.rb
+++ b/spec/support/platform_helpers.rb
@@ -222,16 +222,16 @@ def selinux_enabled?
cmd_result = cmd.run_command
case cmd_result.exitstatus
when 1
- return false
+ false
when 0
- return true
+ true
else
raise "Unknown exit code from command #{selinuxenabled_path}: #{cmd.exitstatus}"
end
else
# We assume selinux is not enabled if selinux utils are not
# installed.
- return false
+ false
end
end