From 24174d1b3aa1b8ac4fec95f82f6204e2d095805d Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 19 Nov 2010 10:23:13 -0800 Subject: this return value is not used, so stop returning it --- activerecord/lib/active_record/migration.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 9892c6c338..b303ff4225 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -327,11 +327,10 @@ module ActiveRecord when :down then announce "reverting" end - result = nil time = nil ActiveRecord::Base.connection_pool.with_connection do |conn| @connection = conn - time = Benchmark.measure { result = send(direction) } + time = Benchmark.measure { send(direction) } @connection = nil end @@ -339,8 +338,6 @@ module ActiveRecord when :up then announce "migrated (%.4fs)" % time.real; write when :down then announce "reverted (%.4fs)" % time.real; write end - - result end def write(text="") -- cgit v1.2.3