From cf511b3a7c3de2c15fb0bb78095e78f1769993f8 Mon Sep 17 00:00:00 2001 From: realisation Date: Wed, 18 Oct 2023 08:39:55 -0400 Subject: [PATCH] adjustment to has-keyfile route --- src/register.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/register.rs b/src/register.rs index 322629a0..5a31b16f 100644 --- a/src/register.rs +++ b/src/register.rs @@ -109,7 +109,8 @@ async fn handle_has_keyfile( keyfile: Arc>>> ) -> Result { - Ok(warp::reply::json(&keyfile.lock().unwrap().is_some())) + Ok(warp::reply::json( + &keyfile.lock().unwrap().as_ref().unwrap().is_empty())) }