Browse Source

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.
Miro Prasil 6 years ago
parent
commit
d6e9af909b
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/api/admin.rs

+ 1 - 5
src/api/admin.rs

@@ -37,11 +37,7 @@ pub fn routes() -> Vec<Route> {
 }
 
 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("/")]