Navigation Menu

Skip to content

Commit

Permalink
Use guard unless style
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 26, 2014
1 parent 56b7499 commit 38485c1
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+/)
if status == "alive"
nodes[name] = {
"serfAddress" => address,
}
end
next unless status == "alive"

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

0 comments on commit 38485c1

Please sign in to comment.