提交 9a7409bb 编写于 作者: R Ryuta Kamizono

Remove redundant `!loaded?` condition

Already checked `if !find_target? || loaded?`, unnecessary `!loaded?` in
elsif condition.
上级 da33612d
......@@ -227,9 +227,9 @@ def size
else
target.size
end
elsif !loaded? && !association_scope.group_values.empty?
elsif !association_scope.group_values.empty?
load_target.size
elsif !loaded? && !association_scope.distinct_value && target.is_a?(Array)
elsif !association_scope.distinct_value && target.is_a?(Array)
unsaved_records = target.select(&:new_record?)
unsaved_records.size + count_records
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册