summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-10-16 14:17:35 +0000
committerGo MAEDA <maeda@farend.jp>2023-10-16 14:17:35 +0000
commit03280712d3969b8e2de5119752c9b770c0f6f95c (patch)
treee0dcbc8b2a24e0913417cef198781c6767e8a365 /app/models
parent28a45b7144b6c250d060eecccfec14d41585bd27 (diff)
downloadredmine-03280712d3969b8e2de5119752c9b770c0f6f95c.tar.gz
redmine-03280712d3969b8e2de5119752c9b770c0f6f95c.zip
Fix RuboCop offenses due to r22343: Style/RedundantRegexpEscape, Layout/EmptyLinesAroundMethodBody, and Style/HashSyntax (#39181).
git-svn-id: https://svn.redmine.org/redmine/trunk@22346 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user_query.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/user_query.rb b/app/models/user_query.rb
index dbbb0eccb..cd3a5172b 100644
--- a/app/models/user_query.rb
+++ b/app/models/user_query.rb
@@ -176,7 +176,7 @@ class UserQuery < Query
else
# match = (operator == '~')
match = !operator.start_with?('!')
- matching_operator = operator.sub /^\!/, ''
+ matching_operator = operator.sub /^!/, ''
name_sql = %w(login firstname lastname).map{|field| sql_for_field(:name, operator, value, User.table_name, field)}
emails = EmailAddress.table_name
@@ -191,6 +191,5 @@ class UserQuery < Query
op = match ? " OR " : " AND "
"(#{conditions.map{|s| "(#{s})"}.join(op)})"
end
-
end
end