mirror of
https://github.com/lune-org/lune.git
synced 2025-04-13 23:10:52 +01:00
fix: double lookup with same values
This commit is contained in:
parent
60098d519a
commit
299a80a2e8
1 changed files with 2 additions and 6 deletions
|
@ -38,12 +38,8 @@ pub async fn find_lune_scripts(in_home_dir: bool) -> Result<Vec<(String, String)
|
||||||
bail!("Failed to cast path to string slice.")
|
bail!("Failed to cast path to string slice.")
|
||||||
};
|
};
|
||||||
|
|
||||||
let init_file_path = match (
|
let init_file_path = match discover_script_path(dir_path, in_home_dir) {
|
||||||
discover_script_path(dir_path, in_home_dir),
|
Ok(init_file) => init_file,
|
||||||
discover_script_path(dir_path, in_home_dir),
|
|
||||||
) {
|
|
||||||
(Ok(lune_init), _) => lune_init,
|
|
||||||
(_, Ok(dotlune_init)) => dotlune_init,
|
|
||||||
_ => continue,
|
_ => continue,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue