Skip to content
This repository
Browse code

Avoid creating local var.

  • Loading branch information...
commit 6ffe0ef55bbabf59a533402a6420942c7397e441 1 parent 63c9185
Emilio Tagua authored November 21, 2010 tenderlove committed November 24, 2010
3  activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -40,8 +40,7 @@ def encoding
40 40
         if @connection.respond_to?(:encoding)
41 41
           @connection.encoding.to_s
42 42
         else
43  
-          encoding = @connection.execute('PRAGMA encoding')
44  
-          encoding[0]['encoding']
  43
+          @connection.execute('PRAGMA encoding')[0]['encoding']
45 44
         end
46 45
       end
47 46
 

0 notes on commit 6ffe0ef

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