Navigation Menu

Skip to content

Commit

Permalink
Revert "Use guard unless style"
Browse files Browse the repository at this point in the history
This reverts commit 38485c1.
  • Loading branch information
piroor committed Jun 26, 2014
1 parent 069cf63 commit 028e672
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/droonga/command/serf_event_handler.rb
Expand Up @@ -59,11 +59,11 @@ def live_nodes
members = `#{@serf} members -rpc-addr #{@serf_rpc_address}`
members.each_line do |member|
name, address, status, = member.strip.split(/\s+/)
next unless status == "alive"

nodes[name] = {
"serfAddress" => address,
}
if status == "alive"
nodes[name] = {
"serfAddress" => address,
}
end
end
nodes
end
Expand Down

0 comments on commit 028e672

Please sign in to comment.