mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-03 03:36:30 +03:00
adjustment to has-keyfile route
This commit is contained in:
parent
be79403536
commit
cf511b3a7c
@ -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()))
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user