From 646b15938d347aa6e82c8f55d222d60ca6f53d8d Mon Sep 17 00:00:00 2001 From: phoenix Date: Mon, 20 Oct 2025 11:54:43 -0400 Subject: [PATCH] Wanring fix --- src/repo/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/repo/mod.rs b/src/repo/mod.rs index 53fe607..d539517 100644 --- a/src/repo/mod.rs +++ b/src/repo/mod.rs @@ -124,10 +124,10 @@ pub mod user { .map_err(|_e| sqlx::Error::RowNotFound)?, }; - if !result.id.is_nil() && !result.date_created.is_none() { - Ok((result.id, result.date_created)) - } else { + if result.id.is_nil() && result.date_created.is_none() { Err(sqlx::Error::RowNotFound) + } else { + Ok((result.id, result.date_created)) } } }