Skip to content

Commit 35768c4

Browse files
author
Andrew
committed
style fix 3
1 parent e98f65c commit 35768c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ impl CommandDiscovery {
111111
paths.append(&mut env::split_paths(&value).collect::<Vec<_>>());
112112
} else {
113113
for p in resource_path_setting.directories {
114-
let Ok(v) = PathBuf::from_str(&p) else { return Err(DscError::Operation("Can't parse '{p}'".to_string()));};
115-
paths.push(v);
114+
let v = PathBuf::from_str(&p);
115+
paths.push(v.unwrap_or_default());
116116
}
117117

118118
if resource_path_setting.append_env_path {

0 commit comments

Comments
 (0)