From 625eebb720606efbd7e7094a34b8a9ba24ba6954 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 28 Oct 2012 11:39:43 +0000 Subject: [PATCH] code cleanup scm_iconv (#12228) git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10742 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/abstract_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/abstract_adapter.rb b/lib/redmine/scm/adapters/abstract_adapter.rb index 28f5f16f8..488e7d73b 100644 --- a/lib/redmine/scm/adapters/abstract_adapter.rb +++ b/lib/redmine/scm/adapters/abstract_adapter.rb @@ -263,7 +263,7 @@ module Redmine if str.respond_to?(:force_encoding) str.force_encoding(from) begin - s = str.encode(to) + str.encode(to) rescue Exception => err logger.error("failed to convert from #{from} to #{to}. #{err}") nil