From 702d487a7e9789c68dca59782bdf22e62242789a Mon Sep 17 00:00:00 2001 From: flippingbits Date: Wed, 15 Dec 2010 08:19:03 +0100 Subject: [PATCH] Don't use ugly curly braces --- lib/titan/cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/titan/cli.rb b/lib/titan/cli.rb index bd7a89b..def24a4 100644 --- a/lib/titan/cli.rb +++ b/lib/titan/cli.rb @@ -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