Fix ee-compat-check by not modifying frozen strings

上级 4cf1845e
......@@ -286,7 +286,7 @@ module Gitlab
end
def patch_name_from_branch(branch_name)
branch_name.parameterize << '.patch'
"#{branch_name.parameterize}.patch"
end
def patch_url
......@@ -434,9 +434,11 @@ module Gitlab
end
def conflicting_files_msg
failed_files.reduce("The conflicts detected were as follows:\n") do |memo, file|
memo << "\n - #{file}"
end
header = "The conflicts detected were as follows:\n"
separator = "\n - "
failed_items = failed_files.join(separator)
"#{header}#{separator}#{failed_items}"
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册