Преглед изворни кода

Fix auto-assignment not filtering out author.

Eric Huss пре 2 година
родитељ
комит
4fa7b57add
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/handlers/assign.rs

+ 3 - 1
src/handlers/assign.rs

@@ -682,7 +682,9 @@ fn candidate_reviewers_from_names<'a>(
         }
 
         // Assume it is a user.
-        candidates.insert(group_or_user);
+        if filter(&group_or_user) {
+            candidates.insert(group_or_user);
+        }
     }
     Ok(candidates)
 }