diff --git a/src/notifications/notification.rs b/src/notifications/notification.rs index cee30d4..4f82af9 100644 --- a/src/notifications/notification.rs +++ b/src/notifications/notification.rs @@ -27,7 +27,11 @@ pub trait Notification { total_new_links: usize, ) -> bool { // Don't send notification if everything was successful but 0 links were grabbed and processed - if total_new_links == 0 && action_results.values().all(|pm| pm.failed.is_empty()) { + if total_new_links == 0 + && action_results + .values() + .all(|pm| pm.failed.is_empty() && pm.success.is_empty()) + { return false; } true