Skip to content

Commit

Permalink
Use Array() to wrap variable
Browse files Browse the repository at this point in the history
  • Loading branch information
y310 committed Dec 3, 2012
1 parent 7fa52aa commit dae2fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kodama/client.rb
Expand Up @@ -67,7 +67,7 @@ def log_level=(level)
end

def gracefully_stop_on=(signals)
(signals.kind_of?(Array) ? signals : [signals]).each do |signal|
Array(signals).each do |signal|
set_exit_trap_for(signal)
end
end
Expand Down

0 comments on commit dae2fc2

Please sign in to comment.