Skip to content
Browse files

Avoid creating local var.

  • Loading branch information...
1 parent 63c9185 commit 6ffe0ef55bbabf59a533402a6420942c7397e441 @miloops miloops committed with tenderlove
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
View
3 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -40,8 +40,7 @@ def encoding
if @connection.respond_to?(:encoding)
@connection.encoding.to_s
else
- encoding = @connection.execute('PRAGMA encoding')
- encoding[0]['encoding']
+ @connection.execute('PRAGMA encoding')[0]['encoding']
end
end

0 comments on commit 6ffe0ef

Please sign in to comment.
Something went wrong with that request. Please try again.