mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
return is not needed here
This commit is contained in:
parent
2f66b9a76c
commit
632120deb4
1 changed files with 2 additions and 2 deletions
|
@ -177,9 +177,9 @@ module ActiveRecord
|
||||||
distinct = options[:distinct] || distinct
|
distinct = options[:distinct] || distinct
|
||||||
|
|
||||||
if @group_values.any?
|
if @group_values.any?
|
||||||
return execute_grouped_calculation(operation, column_name)
|
execute_grouped_calculation(operation, column_name)
|
||||||
else
|
else
|
||||||
return execute_simple_calculation(operation, column_name, distinct)
|
execute_simple_calculation(operation, column_name, distinct)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue