From d6e9af909be8be79bf4f301d25a343df6108efd7 Mon Sep 17 00:00:00 2001 From: Miro Prasil Date: Tue, 1 Oct 2019 10:40:22 +0100 Subject: [PATCH] Remove the unnecessary check for sqlite The binary we use is called `sqlite3` so no need to check for other name variants as we won't use those anyways. --- src/api/admin.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/api/admin.rs b/src/api/admin.rs index 23925b37..b127c46f 100644 --- a/src/api/admin.rs +++ b/src/api/admin.rs @@ -37,11 +37,7 @@ pub fn routes() -> Vec { } lazy_static! { - static ref CAN_BACKUP: bool = cfg!(feature = "sqlite") && - ( - Command::new("sqlite").arg("-version").status().is_ok() || - Command::new("sqlite3").arg("-version").status().is_ok() - ); + static ref CAN_BACKUP: bool = cfg!(feature = "sqlite") && Command::new("sqlite3").arg("-version").status().is_ok(); } #[get("/")]