[Groonga-commit] droonga/fluent-plugin-droonga at 0a44ac4 [master] Remove duplicated codes

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 27 18:10:00 JST 2014


YUKI Hiroshi	2014-01-27 18:10:00 +0900 (Mon, 27 Jan 2014)

  New Revision: 0a44ac468ba6e58dde108662e9cb9c662a2de8f9
  https://github.com/droonga/fluent-plugin-droonga/commit/0a44ac468ba6e58dde108662e9cb9c662a2de8f9

  Message:
    Remove duplicated codes

  Modified files:
    lib/droonga/message_processing_error.rb

  Modified: lib/droonga/message_processing_error.rb (+1 -9)
===================================================================
--- lib/droonga/message_processing_error.rb    2014-01-27 18:07:42 +0900 (67e111c)
+++ lib/droonga/message_processing_error.rb    2014-01-27 18:10:00 +0900 (ebaf780)
@@ -29,7 +29,7 @@ module Droonga
     end
 
     def status_code
-      STATUS_CODE
+      self.class::STATUS_CODE
     end
 
     def response_body
@@ -44,17 +44,9 @@ module Droonga
 
   class BadRequest < MessageProcessingError
     STATUS_CODE = 400
-
-    def status_code
-      STATUS_CODE
-    end
   end
 
   class NotFound < MessageProcessingError
     STATUS_CODE = 404
-
-    def status_code
-      STATUS_CODE
-    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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