refactor: expect unstead of unwrap on lock creation

This commit is contained in:
Niklas Long
2020-11-11 18:29:54 +01:00
parent e60e9835d0
commit f370a9b710

View File

@ -254,7 +254,7 @@ impl Lock {
.open(path)
.unwrap();
FileExt::try_lock_exclusive(&file).unwrap();
FileExt::try_lock_exclusive(&file).expect("repo lock creation failed");
Ok(Lock { file })
}