From 299a80a2e8b65a4ec739e3f125f9f2e318803b35 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 11 Oct 2023 08:30:51 -0700 Subject: [PATCH] fix: double lookup with same values --- src/cli/utils/listing.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cli/utils/listing.rs b/src/cli/utils/listing.rs index d3bd720..84d7e13 100644 --- a/src/cli/utils/listing.rs +++ b/src/cli/utils/listing.rs @@ -38,12 +38,8 @@ pub async fn find_lune_scripts(in_home_dir: bool) -> Result lune_init, - (_, Ok(dotlune_init)) => dotlune_init, + let init_file_path = match discover_script_path(dir_path, in_home_dir) { + Ok(init_file) => init_file, _ => continue, };