[Groonga-commit] long-long-float/droonga-engine at e305364 [master] Don't use guard-unless style for a long line

Back to archive index

YUKI Piro Hiroshi null+****@clear*****
Mon Aug 25 20:23:43 JST 2014


YUKI "Piro" Hiroshi	2014-08-25 20:23:43 +0900 (Mon, 25 Aug 2014)

  New Revision: e305364e3e47971baf015f2a469b3572132cdf3c
  https://github.com/long-long-float/droonga-engine/commit/e305364e3e47971baf015f2a469b3572132cdf3c

  Message:
    Don't use guard-unless style for a long line

  Modified files:
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/serf_event_handler.rb (+9 -2)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-08-25 20:21:01 +0900 (ae49814)
+++ lib/droonga/command/serf_event_handler.rb    2014-08-25 20:23:43 +0900 (ad658ef)
@@ -137,8 +137,15 @@ module Droonga
         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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index