#20174 removed the option and unwrap

This commit is contained in:
Andrei Cristian Petcu 2018-03-02 20:21:24 +02:00
parent 476a0764f5
commit 415c43e226
4 changed files with 11 additions and 12 deletions

View file

@ -184,7 +184,7 @@ pub fn add_user_prefs() {
init_user_prefs(&mut path);
}
None => {
let mut path = default_config_dir().unwrap();
let mut path = default_config_dir();
if path.join("prefs.json").exists() {
init_user_prefs(&mut path);
}