File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,12 @@ impl CommandDiscovery {
126
126
let mut paths: Vec < PathBuf > = vec ! [ ] ;
127
127
128
128
let dsc_resource_path = env:: var_os ( "DSC_RESOURCE_PATH" ) ;
129
- if resource_path_setting. allow_env_override && dsc_resource_path. is_some ( ) {
130
- let value = dsc_resource_path. unwrap ( ) ;
131
- debug ! ( "DSC_RESOURCE_PATH: {:?}" , value. to_string_lossy( ) ) ;
132
- using_custom_path = true ;
133
- paths. append ( & mut env:: split_paths ( & value) . collect :: < Vec < _ > > ( ) ) ;
129
+ if resource_path_setting. allow_env_override {
130
+ if let Some ( value) = dsc_resource_path {
131
+ debug ! ( "DSC_RESOURCE_PATH: {:?}" , value. to_string_lossy( ) ) ;
132
+ using_custom_path = true ;
133
+ paths. append ( & mut env:: split_paths ( & value) . collect :: < Vec < _ > > ( ) ) ;
134
+ }
134
135
} else {
135
136
for p in resource_path_setting. directories {
136
137
let v = PathBuf :: from_str ( & p) ;
You can’t perform that action at this time.
0 commit comments