[Groonga-commit] groonga/groonga [master] test: clarify the intent of the code

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 16日 (水) 13:21:08 JST


HAYASHI Kentaro	2012-05-16 13:21:08 +0900 (Wed, 16 May 2012)

  New Revision: f2ccf3a413dc0a3e2f2ef07151e4a06b8b2b3511

  Log:
    test: clarify the intent of the code

  Modified files:
    test/function/tools/geo/generate-grntest-data.rb

  Modified: test/function/tools/geo/generate-grntest-data.rb (+2 -1)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb    2012-05-16 13:07:21 +0900 (24b8070)
+++ test/function/tools/geo/generate-grntest-data.rb    2012-05-16 13:21:08 +0900 (ef496c3)
@@ -212,7 +212,8 @@ if __FILE__ == $0
     lines = csv_file.readlines
 
     lines.each_with_index do |line, i|
-      next if i == 0 # skip header
+      is_header = i == 0
+      next if is_header
 
       #puts "line No #{i}"
 




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