Skip to content

Commit

Permalink
Make the linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Nov 9, 2016
1 parent 0db0cf8 commit bc219e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions lib/facter/xcode_active_directory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
output = Facter::Util::Resolution.exec('/usr/bin/xcode-select -p')
if $CHILD_STATUS.exitstatus.nonzero?
nil
elsif File.exist?(output.to_s.strip)
output
else
if File.exist?(output.to_s.strip)
output
else
nil
end
nil
end
end
end
4 changes: 3 additions & 1 deletion lib/facter/xcode_command_line_tools.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Facter.add(:xcode_command_line_tools) do
confine kernel: 'Darwin'
setcode do
if Facter.value(:xcode_active_directory).include? '.app'
if Facter.value(:xcode_active_directory).nil?
false
elsif Facter.value(:xcode_active_directory).include? '.app'
true
else
false
Expand Down

0 comments on commit bc219e2

Please sign in to comment.