vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit d6e9af909be8be79bf4f301d25a343df6108efd7
parent acdd42935b7e71461d51ab2bb92610bfec8a6601
Author: Miro Prasil <miro@circleci.com>
Date:   Tue,  1 Oct 2019 10:40:22 +0100

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.

Diffstat:
Msrc/api/admin.rs | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/api/admin.rs b/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("/")]