shared-cache: minor style adaptation

(more concise & readable)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-08-09 11:10:47 +02:00
parent 2d4050825d
commit c66e5432e7

View File

@ -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)
}
}
} }
} }