summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-09 02:16:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-09 02:16:59 +0000
commit7ba233469f5d0630293a01f1b0c470f71dd528c5 (patch)
treecfd7ec8e5ab9a256cd5a8df855179d3e781ee51c /app
parent203c30dad110239c9b40e5d283d4cad2412fcd51 (diff)
downloadredmine-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
Diffstat (limited to 'app')
-rw-r--r--app/models/changeset.rb6
1 files changed, 1 insertions, 5 deletions
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