From a2f407655e47175ca39a311ec8645ae7d3611a3d Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 9 Jul 2023 21:04:21 +0100 Subject: [PATCH] fix: configure --- src/configure.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/configure.rs b/src/configure.rs index c0904fb..772b3ce 100644 --- a/src/configure.rs +++ b/src/configure.rs @@ -113,16 +113,10 @@ fn is_configured(conn: &Conn) -> Result { return Err(json!(ApiResponse {code: 500, message: "Clould not get data of db".to_string()}).to_string()); } - let mut version_iter = version_iter.ok().unwrap(); + let version_iter = version_iter.ok().unwrap(); - if version_iter.by_ref().count() != 1 { - return Err(json!(ApiResponse {code: 500, message: "Change something is very wrong!".to_string()}).to_string()); - } - - println!("here!!!!"); for data in version_iter { let data = data.unwrap(); - println!("here: {:?}", data); if data.configured == 1 { return Ok(true); }