[#444] Remove extra variable

This commit is contained in:
Eric Davis 2011-06-03 10:50:16 -07:00
parent f518251d5f
commit ba3ddee99d

View File

@ -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]