]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/RedundantSelfAssignment (#40412).
authorGo MAEDA <maeda@farend.jp>
Mon, 13 May 2024 07:45:20 +0000 (07:45 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 13 May 2024 07:45:20 +0000 (07:45 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22826 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_query.rb

index 687a8bdba90d7e6e2ba36e66ed51f4548b6e00e8..c4b08158fd922ce6a24c445b92020320a05ec2e7 100644 (file)
@@ -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?