[Groonga-commit] groonga/grntest [master] Use "if...else" instead of "unless...else"

Back to archive index

null+****@clear***** null+****@clear*****
2012年 6月 12日 (火) 12:40:53 JST


Haruka Yoshihara	2012-06-12 12:40:53 +0900 (Tue, 12 Jun 2012)

  New Revision: 6a8561289bb27b93b625943d7f26ed811ae25dda

  Log:
    Use "if...else" instead of "unless...else"

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+9 -9)
===================================================================
--- lib/groonga/tester.rb    2012-06-12 12:34:54 +0900 (0dab54a)
+++ lib/groonga/tester.rb    2012-06-12 12:40:53 +0900 (45f1423)
@@ -350,15 +350,7 @@ module Groonga
       end
 
       def groonga_http_command(host, port, pid_file, context)
-        unles****@teste*****_httpd.nil?
-          db_path = context.db_path
-          config_file = create_config_file(host, port, db_path, pid_file)
-          command_line = [
-            @tester.groonga_httpd,
-            "-c", config_file.path,
-            "-p", keep_database_path,
-          ]
-        else
+        if****@teste*****_httpd.nil?
           command_line = [
             @tester.groonga,
             "--pid-path", pid_file.path,
@@ -368,6 +360,14 @@ module Groonga
             "-d",
             "-n", context.db_path,
           ]
+        else
+          db_path = context.db_path
+          config_file = create_config_file(host, port, db_path, pid_file)
+          command_line = [
+            @tester.groonga_httpd,
+            "-c", config_file.path,
+            "-p", keep_database_path,
+          ]
         end
         command_line
       end




Groonga-commit メーリングリストの案内
Back to archive index