diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-09 02:16:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-09 02:16:59 +0000 |
commit | 7ba233469f5d0630293a01f1b0c470f71dd528c5 (patch) | |
tree | cfd7ec8e5ab9a256cd5a8df855179d3e781ee51c | |
parent | 203c30dad110239c9b40e5d283d4cad2412fcd51 (diff) | |
download | redmine-7ba233469f5d0630293a01f1b0c470f71dd528c5.tar.gz redmine-7ba233469f5d0630293a01f1b0c470f71dd528c5.zip |
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
-rw-r--r-- | .rubocop_todo.yml | 1 | ||||
-rw-r--r-- | app/models/changeset.rb | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8fa1d53d2..a8581835a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/app/models/changeset.rb b/app/models/changeset.rb index ba64916bd..6a0b42df8 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -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 |