From 48b2c8bc3693af18b5dd41b6161333d7e9e698f0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 22 Oct 2019 15:54:24 +0000 Subject: 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 --- app/models/query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit v1.2.3