forked from proxmox-mirrors/proxmox
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),
|
None => Ok(None),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) if err.kind() == ErrorKind::NotFound => Ok(None),
|
||||||
if err.kind() != ErrorKind::NotFound {
|
Err(err) => Err(err.into()),
|
||||||
Err(err.into())
|
|
||||||
} else {
|
|
||||||
Ok(None)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user