summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-24 15:56:51 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-24 15:56:51 +0000
commit591d0eae799968578f1fd0d5e3b37a5ee8515d4a (patch)
treeaef0d41a12befa959c7579efb885d11b3302833d /app/models/issue.rb
parent9a5cb65b9eb3229b428722968bb17613121d725e (diff)
downloadredmine-591d0eae799968578f1fd0d5e3b37a5ee8515d4a.tar.gz
redmine-591d0eae799968578f1fd0d5e3b37a5ee8515d4a.zip
code cleanup: rubocop: fix Style/ZeroLengthPredicate in app/models/issue.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18523 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 6bfdaa433..8f74ec44e 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -77,7 +77,7 @@ class Issue < ActiveRecord::Base
}
scope :open, lambda {|*args|
- is_closed = args.size > 0 ? !args.first : false
+ is_closed = !args.empty? ? !args.first : false
joins(:status).
where(:issue_statuses => {:is_closed => is_closed})
}