summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/c.rb
diff options
context:
space:
mode:
authorErik Gomez <e@eriknicolasgomez.com>2017-01-16 11:46:33 -0800
committerTim Smith <tsmith@chef.io>2017-01-20 11:34:40 -0800
commit872e075b47bcef3c9849e54d3abbcfa00a3a2d8d (patch)
tree7e3d9697346613ab3c7d49fbe66b9aca73673401 /lib/ohai/plugins/c.rb
parent7f5878a3b19a82384c911666454f7f57e710a9f7 (diff)
downloadohai-872e075b47bcef3c9849e54d3abbcfa00a3a2d8d.tar.gz
fixed Chefstyle
Signed-off-by: Erik Gomez <e@eriknicolasgomez.com>
Diffstat (limited to 'lib/ohai/plugins/c.rb')
-rw-r--r--lib/ohai/plugins/c.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/c.rb b/lib/ohai/plugins/c.rb
index 9e223915..d7a90b39 100644
--- a/lib/ohai/plugins/c.rb
+++ b/lib/ohai/plugins/c.rb
@@ -38,11 +38,11 @@ Ohai.plugin(:C) do
Ohai::Log.debug("Checking for Xcode Command Line Tools.")
so = shell_out("/usr/bin/xcode-select -p")
if so.exitstatus == 0
- return true
Ohai::Log.debug("Xcode Command Line Tools found.")
+ return true
else
- return false
Ohai::Log.debug("Xcode Command Line Tools not found.")
+ return false
end
rescue Ohai::Exceptions::Exec
Ohai::Log.debug("xcode-select binary could not be found. Skipping data.")