mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #1178 from joshk/ruby19_warning
Corrected a minor ruby19 variable name reuse warning
This commit is contained in:
@@ -56,9 +56,9 @@ module ActiveSupport
|
||||
end
|
||||
|
||||
def open_log(log, mode)
|
||||
open(log, mode).tap do |log|
|
||||
log.set_encoding(Encoding::BINARY) if log.respond_to?(:set_encoding)
|
||||
log.sync = true
|
||||
open(log, mode).tap do |open_log|
|
||||
open_log.set_encoding(Encoding::BINARY) if open_log.respond_to?(:set_encoding)
|
||||
open_log.sync = true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user