summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-10 02:01:02 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 02:03:35 +0100
commite2e18eb3c896250ce98c054580861f3756a84889 (patch)
tree3f3a97573f1f1ff2356f76e78afff6f4cb82cc42 /bin/domain/imag-todo/src/lib.rs
parentb4191a2743cc6d9c91a6bfeaa614f5e294da97b8 (diff)
downloadimag-e2e18eb3c896250ce98c054580861f3756a84889.tar.gz
imag-e2e18eb3c896250ce98c054580861f3756a84889.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index 968b4d14..72a51bd9 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -183,7 +183,7 @@ impl StatusMatcher {
if self.is_not.iter().find(|t| **t == todo).is_some() {
// On blacklist
false
- } else if self.is.len() < 1 || self.is.iter().find(|t| **t == todo).is_some() {
+ } else if self.is.is_empty() || self.is.iter().any(|t| *t == todo) {
// No whitelist or on whitelist
true
} else {