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