[Groonga-commit] droonga/fluent-plugin-droonga at 0144046 [master] Add missing "()"

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 14 12:47:11 JST 2014


Kouhei Sutou	2014-02-14 12:47:11 +0900 (Fri, 14 Feb 2014)

  New Revision: 0144046f8f5cc1f7e6e7bc91dd3c10c87c5a758b
  https://github.com/droonga/fluent-plugin-droonga/commit/0144046f8f5cc1f7e6e7bc91dd3c10c87c5a758b

  Message:
    Add missing "()"

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2014-02-14 12:44:01 +0900 (e6144af)
+++ lib/droonga/plugin/collector/basic.rb    2014-02-14 12:47:11 +0900 (d87df9f)
@@ -51,9 +51,9 @@ module Droonga
 
       case deal["type"]
       when "and"
-        reduced_value = left_value and right_value
+        reduced_value = (left_value and right_value)
       when "or"
-        reduced_value = left_value or right_value
+        reduced_value = (left_value or right_value)
       when "sum"
         reduced_value = sum(left_value, right_value)
         reduced_value = apply_output_range(reduced_value,
-------------- next part --------------
HTML����������������������������...
다운로드 



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