mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
Minor config file handling cleanup
This commit is contained in:
parent
90746537a3
commit
f3fffa142f
1 changed files with 3 additions and 8 deletions
|
@ -105,15 +105,10 @@ impl GlobalConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config file path is given but not valid
|
// Config file path is given but not valid
|
||||||
if !return_value.config_file_path.as_mut().unwrap().exists() {
|
let config_file = return_value.config_file_path.clone().unwrap();
|
||||||
|
if !config_file.exists() {
|
||||||
return Err(ConfigError::FileNotFoundError(String::from(
|
return Err(ConfigError::FileNotFoundError(String::from(
|
||||||
return_value
|
config_file.to_str().unwrap()
|
||||||
.config_file_path
|
|
||||||
.as_mut()
|
|
||||||
.unwrap()
|
|
||||||
.to_str()
|
|
||||||
.unwrap()
|
|
||||||
.clone(),
|
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue