Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Make diff_format_revisions frozen string compatible

nsalgueroc78a0ec6ae01
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 703d861dd7d..517826705cc 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -174,8 +174,8 @@ class Repository < ApplicationRecord
def diff_format_revisions(cs, cs_to, sep = ":")
text = ""
- text << (cs_to.format_identifier + sep) if cs_to
- text << cs.format_identifier if cs
+ text += (cs_to.format_identifier + sep) if cs_to
+ text += cs.format_identifier if cs
text
end