summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-03-07 08:47:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-03-07 08:47:38 +0000
commit0d141eef3207da0269814a0d2f81f35386568536 (patch)
treeb67df5c059b93c7e9d6e016d073d7f1009438d7b
parentb19a6d06d91252611571d2d045326daf58a3fb10 (diff)
downloadredmine-0d141eef3207da0269814a0d2f81f35386568536.tar.gz
redmine-0d141eef3207da0269814a0d2f81f35386568536.zip
code cleanup (#12641)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11546 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/unified_diff.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb
index d08ab5c01..450b99ae3 100644
--- a/lib/redmine/unified_diff.rb
+++ b/lib/redmine/unified_diff.rb
@@ -28,9 +28,8 @@ module Redmine
lines = 0
@truncated = false
diff_table = DiffTable.new(diff_type, diff_style)
- diff.each do |line|
- line_encoding = nil
- line = Redmine::CodesetUtil.to_utf8_by_setting(line)
+ diff.each do |line_raw|
+ line = Redmine::CodesetUtil.to_utf8_by_setting(line_raw)
unless diff_table.add_line(line)
self << diff_table if diff_table.length > 0
diff_table = DiffTable.new(diff_type, diff_style)