Commit ba3ddee9 authored by Eric Davis's avatar Eric Davis

[#444] Remove extra variable

parent f518251d
...@@ -259,10 +259,10 @@ class Changeset < ActiveRecord::Base ...@@ -259,10 +259,10 @@ class Changeset < ActiveRecord::Base
end end
end end
else else
ic = Iconv.new('UTF-8', normalized_encoding)
txtar = "" txtar = ""
begin begin
txtar += ic.iconv(str) txtar += Iconv.new('UTF-8', normalized_encoding).iconv(str)
rescue Iconv::IllegalSequence rescue Iconv::IllegalSequence
txtar += $!.success txtar += $!.success
str = '?' + $!.failed[1,$!.failed.length] str = '?' + $!.failed[1,$!.failed.length]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment