tobiaskaminsky 7 年之前
父節點
當前提交
1011e63eb1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/lint/lint-up.rb

+ 1 - 1
scripts/lint/lint-up.rb

@@ -82,7 +82,7 @@ end
 # find number of errors
 error_string = error_warning_string.match(/[0-9]* error[s]?/)
 
-if (error_string == nil)
+if (error_string.nil?)
     current_error_count = 0
 else
     current_error_count = error_string[0].match(/[0-9]*/)[0].to_i