[#444] Remove extra variable
This commit is contained in:
parent
f518251d5f
commit
ba3ddee99d
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user