[Groonga-commit] groonga/fluent-plugin-groonga [master] Remove needless case

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 28 15:17:03 JST 2012


Kouhei Sutou	2012-11-28 15:17:03 +0900 (Wed, 28 Nov 2012)

  New Revision: e0793e021fc6f909dcff94610dd362838262e2b0
  https://github.com/groonga/fluent-plugin-groonga/commit/e0793e021fc6f909dcff94610dd362838262e2b0

  Log:
    Remove needless case

  Modified files:
    lib/fluent/plugin/in_groonga.rb

  Modified: lib/fluent/plugin/in_groonga.rb (+1 -6)
===================================================================
--- lib/fluent/plugin/in_groonga.rb    2012-11-28 14:43:58 +0900 (aa3c98d)
+++ lib/fluent/plugin/in_groonga.rb    2012-11-28 15:17:03 +0900 (3a95139)
@@ -132,12 +132,7 @@ module Fluent
 
       def emit(command, params)
         return unless emit_command?(command)
-        case command
-        when "load"
-          Engine.emit("groonga.command.#{command}", Engine.now, params)
-        else
-          Engine.emit("groonga.command.#{command}", Engine.now, params)
-        end
+        Engine.emit("groonga.command.#{command}", Engine.now, params)
       end
 
       private
-------------- next part --------------
HTML����������������������������...
Download 



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