don't unwrap
for path.extension()
in manifest migration (#254)
should fix #253
This commit is contained in:
parent
f7f9c916ba
commit
6c4af1c9de
1 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,10 @@ pub(crate) fn load_and_migrate(
|
|||
let entry = e.unwrap();
|
||||
if entry.file_type().unwrap().is_file() {
|
||||
let path = entry.path();
|
||||
if path.extension().unwrap() == "maFile" {
|
||||
let Some(ext) = path.extension() else {
|
||||
return;
|
||||
};
|
||||
if ext == "maFile" {
|
||||
backup_file(&path).unwrap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue