1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 20:29:37 +00:00

code cleanup: rubocop: fix Layout/ElseAlignment in app/models/changeset.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18633 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-09 02:16:59 +00:00
parent 203c30dad1
commit 7ba233469f
2 changed files with 1 additions and 6 deletions

View File

@ -119,7 +119,6 @@ Layout/ElseAlignment:
- 'app/helpers/application_helper.rb'
- 'app/helpers/attachments_helper.rb'
- 'app/helpers/queries_helper.rb'
- 'app/models/changeset.rb'
- 'app/models/issue_query.rb'
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- 'lib/redmine/i18n.rb'

View File

@ -161,11 +161,7 @@ class Changeset < ActiveRecord::Base
if repository && repository.identifier.present?
repo = "#{repository.identifier}|"
end
tag = if scmid?
"commit:#{repo}#{scmid}"
else
"#{repo}r#{revision}"
end
tag = scmid? ? "commit:#{repo}#{scmid}" : "#{repo}r#{revision}"
if ref_project && project && ref_project != project
tag = "#{project.identifier}:#{tag}"
end