]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/ElseAlignment in app/models/changeset.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 9 Oct 2019 02:16:59 +0000 (02:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 9 Oct 2019 02:16:59 +0000 (02:16 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18633 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
app/models/changeset.rb

index 8fa1d53d241d63cd1019d2379e8501c1f8c0f79b..a8581835a91a7c41cef9420ec49c7da6795f3347 100644 (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'
index ba64916bd40793b6a8c8ea9b25e3ba1aea041a09..6a0b42df88ad87c4a1a2509ce6dabba79d2dddd5 100644 (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