summaryrefslogtreecommitdiffstats
path: root/lib/redmine/unified_diff.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-17 16:36:34 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-17 16:36:34 +0000
commit30e341db6963d71fccf2d1bf24744ab828bee151 (patch)
tree48d0d989256c847c81fa69712da986803c63c30f /lib/redmine/unified_diff.rb
parentbd5977d97eaf92f852c1bfe499052b6b07ab8aae (diff)
downloadredmine-30e341db6963d71fccf2d1bf24744ab828bee151.tar.gz
redmine-30e341db6963d71fccf2d1bf24744ab828bee151.zip
Support frozen_string_literal in lib/**/*.rb (#26561).
Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/unified_diff.rb')
-rw-r--r--lib/redmine/unified_diff.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb
index d4c93db0e..7fa818751 100644
--- a/lib/redmine/unified_diff.rb
+++ b/lib/redmine/unified_diff.rb
@@ -1,4 +1,4 @@
-# frozen_string_literal: false
+# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
@@ -274,7 +274,7 @@ module Redmine
def line_to_html_raw(line, offsets)
if offsets
- s = ''
+ s = +''
unless offsets.first == 0
s << CGI.escapeHTML(line[0..offsets.first-1])
end