summaryrefslogtreecommitdiffstats
path: root/app/models/issue_relation.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 14:53:23 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 14:53:23 +0000
commitc40714edd13566bfb51eb08273489172d8f630a2 (patch)
treea5aca88cf8b3f566be9c144c98c63b48d1ce01b0 /app/models/issue_relation.rb
parent7bcb299a3c8ad2a1ae3778482db954556d8417c0 (diff)
downloadredmine-c40714edd13566bfb51eb08273489172d8f630a2.tar.gz
redmine-c40714edd13566bfb51eb08273489172d8f630a2.zip
cleanup: rubocop: fix Style/MultilineTernaryOperator and Style/NestedTernaryOperator in app/models/issue_relation.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18961 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_relation.rb')
-rw-r--r--app/models/issue_relation.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/issue_relation.rb b/app/models/issue_relation.rb
index 24978148b..284f0052a 100644
--- a/app/models/issue_relation.rb
+++ b/app/models/issue_relation.rb
@@ -152,9 +152,11 @@ class IssueRelation < ActiveRecord::Base
end
def label_for(issue)
- TYPES[relation_type] ?
- TYPES[relation_type][(self.issue_from_id == issue.id) ? :name : :sym_name] :
- :unknow
+ if TYPES[relation_type]
+ TYPES[relation_type][(self.issue_from_id == issue.id) ? :name : :sym_name]
+ else
+ :unknow
+ end
end
def to_s(issue=nil)