From fa2728a8f70506fa0132399b8ec6cfc4b3b19b8f Mon Sep 17 00:00:00 2001 From: Sam Peters Date: Fri, 16 Feb 2024 11:28:54 -0600 Subject: [PATCH] chore(notifications): fix linting --- core/notifications/src/data_import/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/notifications/src/data_import/mod.rs b/core/notifications/src/data_import/mod.rs index bc33a027582..6141c08ac40 100644 --- a/core/notifications/src/data_import/mod.rs +++ b/core/notifications/src/data_import/mod.rs @@ -27,7 +27,7 @@ pub async fn import_email_addresses( query_builder.push("ORDER BY traits->>'email' LIMIT 1000;"); let query = query_builder.build(); let res = query.fetch_all(&pool).await?; - if res.len() == 0 { + if res.is_empty() { break; } for row in res {