shared-cache: minor style adaptation
(more concise & readable) Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
2d4050825d
commit
c66e5432e7
@ -58,13 +58,8 @@ impl SharedCache {
|
||||
None => Ok(None),
|
||||
}
|
||||
}
|
||||
Err(err) => {
|
||||
if err.kind() != ErrorKind::NotFound {
|
||||
Err(err.into())
|
||||
} else {
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
Err(err) if err.kind() == ErrorKind::NotFound => Ok(None),
|
||||
Err(err) => Err(err.into()),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user