diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-24 15:56:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-09-24 15:56:51 +0000 |
commit | 591d0eae799968578f1fd0d5e3b37a5ee8515d4a (patch) | |
tree | aef0d41a12befa959c7579efb885d11b3302833d /app/models/issue.rb | |
parent | 9a5cb65b9eb3229b428722968bb17613121d725e (diff) | |
download | redmine-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.rb | 2 |
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}) } |