Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Don't use ugly curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
flippingbits committed Dec 15, 2010
1 parent 25e58a9 commit 702d487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/titan/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def help
desc "status", "Prints the status of all threads managed by Titan"
def status
table_header = ["id", "pid", "status"]
threads = Titan::Thread.all.each_value.collect { |thread|
threads = Titan::Thread.all.each_value.collect do |thread|
[thread.id.to_s, thread.pid.to_s, thread.alive? ? "alive" : "dead"]
}
end
@shell.print_table(threads.unshift(table_header)) unless threads.empty?
end

Expand Down

0 comments on commit 702d487

Please sign in to comment.