summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-todo/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-11-10 11:03:18 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-12-22 02:03:35 +0100
commitcb3199474cc23b898b1d664bf6218b14658e4655 (patch)
tree1910e4f228272e91cc39bc4ea5a91a7e32c80b5c /bin/domain/imag-todo/src/lib.rs
parent383fd2ff19416808bfd1edcadb3b85a1663db8ee (diff)
downloadimag-cb3199474cc23b898b1d664bf6218b14658e4655.tar.gz
imag-cb3199474cc23b898b1d664bf6218b14658e4655.tar.xz
Diffstat (limited to 'bin/domain/imag-todo/src/lib.rs')
-rw-r--r--bin/domain/imag-todo/src/lib.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/domain/imag-todo/src/lib.rs b/bin/domain/imag-todo/src/lib.rs
index d7c95ce7..0656e03f 100644
--- a/bin/domain/imag-todo/src/lib.rs
+++ b/bin/domain/imag-todo/src/lib.rs
@@ -183,12 +183,11 @@ impl StatusMatcher {
if self.is_not.iter().any(|t| *t == todo) {
// On blacklist
false
- } else if self.is.is_empty() || self.is.iter().any(|t| *t == todo) {
- // No whitelist or on whitelist
- true
} else {
+ // No whitelist or on whitelist
+ // or
// Not on blacklist, but whitelist exists and not on it either
- false
+ self.is.is_empty() || self.is.iter().any(|t| *t == todo)
}
}
}