adjustment to has-keyfile route

This commit is contained in:
realisation 2023-10-18 08:39:55 -04:00
parent be79403536
commit cf511b3a7c

View File

@ -109,7 +109,8 @@ async fn handle_has_keyfile(
keyfile: Arc<Mutex<Option<Vec<u8>>>>
) -> Result<impl Reply, Rejection> {
Ok(warp::reply::json(&keyfile.lock().unwrap().is_some()))
Ok(warp::reply::json(
&keyfile.lock().unwrap().as_ref().unwrap().is_empty()))
}