Skip to content

Commit

Permalink
Merge pull request #599 from spastorino/fix-prioritization-tagging-issue
Browse files Browse the repository at this point in the history
break out the outer loop
  • Loading branch information
Mark-Simulacrum committed Jun 5, 2020
2 parents dac987f + 170c279 commit 448c68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/prioritize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Handler for PrioritizeHandler {
if config.prioritize_on.iter().any(|l| l == applied_label) {
let mut prioritize = false;

for label in event.issue().unwrap().labels() {
'outer: for label in event.issue().unwrap().labels() {
for exclude_label in &config.exclude_labels {
match glob::Pattern::new(exclude_label) {
Ok(exclude_glob) => {
Expand All @@ -59,7 +59,7 @@ impl Handler for PrioritizeHandler {
}

if !prioritize {
break;
break 'outer;
}
}
}
Expand Down

0 comments on commit 448c68b

Please sign in to comment.