refactor: expect unstead of unwrap on lock creation
This commit is contained in:
@ -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 })
|
||||
}
|
||||
|
Reference in New Issue
Block a user