Skip to content

Commit

Permalink
Don't use guard-unless style for a long line
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 25, 2014
1 parent 97becd7 commit e305364
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/droonga/command/serf_event_handler.rb
Expand Up @@ -137,8 +137,15 @@ def join_as_replica
joining_node = @payload["node"]
tag = @payload["tag"]
dataset = @payload["dataset"]
return unless [source_node, source_node_port, source_node_dataset, joining_node, dataset].all?

required_params = [
source_node,
source_node_port,
source_node_dataset,
joining_node,
dataset,
]
return unless required_params.all?

log("source_node = #{source_node}")

source_host = source_node.split(":").first
Expand Down

0 comments on commit e305364

Please sign in to comment.