[Groonga-commit] droonga/drntest at eb5bddd [master] Use guard if style to clear code

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 20 18:39:39 JST 2014


Kouhei Sutou	2014-01-20 18:39:39 +0900 (Mon, 20 Jan 2014)

  New Revision: eb5bddddc41da46ceb5043e80e9f920a66bc6bfa
  https://github.com/droonga/drntest/commit/eb5bddddc41da46ceb5043e80e9f920a66bc6bfa

  Message:
    Use guard if style to clear code

  Modified files:
    lib/drntest/test-results.rb

  Modified: lib/drntest/test-results.rb (+5 -11)
===================================================================
--- lib/drntest/test-results.rb    2014-01-20 18:37:05 +0900 (5aaffc9)
+++ lib/drntest/test-results.rb    2014-01-20 18:39:39 +0900 (34c8673)
@@ -26,19 +26,13 @@ module Drntest
 
     def status
       return :error unles****@error*****?
+      return :no_response if****@actua*****?
+      return :not_checked if****@expec*****?
 
-      unles****@actua*****?
-        unles****@expec*****?
-          if @actuals == @expecteds
-            :success
-          else
-            :failure
-          end
-        else
-          :not_checked
-        end
+      if @actuals == @expecteds
+        :success
       else
-        :no_response
+        :failure
       end
     end
   end
-------------- next part --------------
HTML����������������������������...
Download 



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