summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:54:24 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-22 15:54:24 +0000
commit48b2c8bc3693af18b5dd41b6161333d7e9e698f0 (patch)
tree84ce3eb7f48aee30e19329bcace24d0314c8b882 /app
parent790d2bae705fa5762c7cc520c78d927e8a5afea6 (diff)
downloadredmine-48b2c8bc3693af18b5dd41b6161333d7e9e698f0.tar.gz
redmine-48b2c8bc3693af18b5dd41b6161333d7e9e698f0.zip
code cleanup: rubocop: fix Style/ParenthesesAroundCondition in app/models/query.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18833 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb
index 19db899d8..fe0cada37 100644
--- a/app/models/query.rb
+++ b/app/models/query.rb
@@ -1171,7 +1171,7 @@ class Query < ActiveRecord::Base
end
when "!*"
sql = "#{db_table}.#{db_field} IS NULL"
- sql += " OR #{db_table}.#{db_field} = ''" if (is_custom_filter || [:text, :string].include?(type_for(field)))
+ sql += " OR #{db_table}.#{db_field} = ''" if is_custom_filter || [:text, :string].include?(type_for(field))
when "*"
sql = "#{db_table}.#{db_field} IS NOT NULL"
sql += " AND #{db_table}.#{db_field} <> ''" if is_custom_filter