Minify error handling in Store::update()
This commit is contained in:
parent
9b332815b9
commit
b288e938f9
1 changed files with 1 additions and 4 deletions
|
@ -493,10 +493,7 @@ impl Store {
|
|||
|
||||
/// Return the `FileLockEntry` and write to disk
|
||||
pub fn update<'a>(&'a self, mut entry: FileLockEntry<'a>) -> Result<()> {
|
||||
if let Err(e) = self._update(&mut entry) {
|
||||
return Err(e).map_err_into(SEK::UpdateCallError);
|
||||
}
|
||||
Ok(())
|
||||
self._update(&mut entry).map_err_into(SEK::UpdateCallError)
|
||||
}
|
||||
|
||||
/// Internal method to write to the filesystem store.
|
||||
|
|
Loading…
Reference in a new issue