Skip to content

Commit

Permalink
return is not needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and tenderlove committed Sep 9, 2010
1 parent 742da4b commit 733e928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/relation/calculations.rb
Expand Up @@ -177,9 +177,9 @@ def perform_calculation(operation, column_name, options = {})
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


Expand Down

0 comments on commit 733e928

Please sign in to comment.