Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

corrected a minor ruby19 variable name reuse warning

  • Loading branch information...
commit c9b5d64ec4c0b04881149214a5bc7bc9a40df596 1 parent e4bcd5e
@joshk joshk authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/buffered_logger.rb
View
6 activesupport/lib/active_support/buffered_logger.rb
@@ -56,9 +56,9 @@ def initialize(log, level = DEBUG)
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
Please sign in to comment.
Something went wrong with that request. Please try again.