Skip to content

Commit

Permalink
Remove redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
James Gartrell committed Mar 4, 2009
1 parent 1d26f1f commit 93b5066
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/ohai/plugins/java.rb
Expand Up @@ -21,6 +21,7 @@
java = Mash.new

status, stdout, stderr = run_command(:no_status_check => true, :command => "java -version")

if status == 0
stderr.split("\n").each do |line|
case line
Expand All @@ -29,8 +30,6 @@
when /^(.+ Client VM) \(build (.+)\)$/: java[:hotspot] = { "name" => $1, "build" => $2 }
end
end
end

if status == 0
languages[:java] = java if java[:version]
end

0 comments on commit 93b5066

Please sign in to comment.