summaryrefslogtreecommitdiffstats
path: root/app/models/issue_query.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-05-13 07:45:20 +0000
committerGo MAEDA <maeda@farend.jp>2024-05-13 07:45:20 +0000
commitfb9bc74dd4781adf0a79e1b05c1ccb034b3e424b (patch)
tree8365e9d735ee2395c6fa4e3afe01c26d9c7f5172 /app/models/issue_query.rb
parent8069401f794b169e43078a17d107c007360bb72a (diff)
downloadredmine-fb9bc74dd4781adf0a79e1b05c1ccb034b3e424b.tar.gz
redmine-fb9bc74dd4781adf0a79e1b05c1ccb034b3e424b.zip
Fix RuboCop offense Style/RedundantSelfAssignment (#40412).
git-svn-id: https://svn.redmine.org/redmine/trunk@22826 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r--app/models/issue_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb
index 687a8bdba..c4b08158f 100644
--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -552,7 +552,7 @@ class IssueQuery < Query
def sql_for_watcher_id_field(field, operator, value)
db_table = Watcher.table_name
me_ids = [0, User.current.id]
- me_ids = me_ids.concat(User.current.groups.pluck(:id))
+ me_ids.concat(User.current.groups.pluck(:id))
me, others = value.partition {|id| me_ids.include?(id.to_i)}
sql =
if others.any?