From c7706ab56f817580bc60e4bf8932b2a34bc5ba96 Mon Sep 17 00:00:00 2001 From: Adrian Groh Date: Fri, 14 Apr 2023 13:01:28 +0200 Subject: [PATCH] fix: fix panic when file specified in `PF_SOURCE` does not exist closes #27 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a80cd2b..7814a33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -214,7 +214,7 @@ fn main() { // source file specified by env: PF_SOURCE if let Ok(filepath) = dotenvy::var("PF_SOURCE") { - dotenvy::from_path(filepath).unwrap(); + let _ = dotenvy::from_path(filepath); } // Check if SKIP_SLOW is enabled let skip_slow_package_managers = dotenvy::var("PF_FAST_PKG_COUNT").is_ok();