Permalink
Browse files

return is not needed here

  • Loading branch information...
1 parent 742da4b commit 733e928234e73b3be6025a45afcd48347820bedf Neeraj Singh committed with tenderlove Sep 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/relation/calculations.rb
@@ -177,9 +177,9 @@ def perform_calculation(operation, column_name, options = {})
distinct = options[:distinct] || distinct
if @group_values.any?
- return execute_grouped_calculation(operation, column_name)
+ execute_grouped_calculation(operation, column_name)
else
- return execute_simple_calculation(operation, column_name, distinct)
+ execute_simple_calculation(operation, column_name, distinct)
end
end

0 comments on commit 733e928

Please sign in to comment.