Skip to content

Commit aea50e2

Browse files
author
Andrew
committed
Stage 5
1 parent 86c55a0 commit aea50e2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,7 @@ fn load_adapted_resources_lookup_table() -> HashMap<String, String>
574574
fn get_lookup_table_file_path() -> String
575575
{
576576
// $env:LocalAppData+"dsc\AdaptedResourcesLookupTable.json"
577-
let local_app_data_path = match std::env::var("LocalAppData") {
578-
Ok(path) => path,
579-
Err(_) => { return "".to_string(); }
580-
};
577+
let Ok(local_app_data_path) = std::env::var("LocalAppData") else { return String::new(); };
581578

582579
Path::new(&local_app_data_path).join("dsc").join("AdaptedResourcesLookupTable.json").display().to_string()
583580
}

0 commit comments

Comments
 (0)