this return value is not used, so stop returning it

This commit is contained in:
Aaron Patterson 2010-11-19 10:23:13 -08:00
parent 9280fbf795
commit 24174d1b3a
1 changed files with 1 additions and 4 deletions

View File

@ -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="")