mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-01 13:14:33 +00:00
agent: remove useless match
Remove useless match. Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
parent
1d8def6663
commit
2f690a2bb0
@ -455,11 +455,8 @@ pub fn add_storages(
|
|||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
let mount_point = match handler(&logger, &storage, sandbox.clone()) {
|
|
||||||
// Todo need to rollback the mounted storage if err met.
|
// Todo need to rollback the mounted storage if err met.
|
||||||
Err(e) => return Err(e),
|
let mount_point = handler(&logger, &storage, sandbox.clone())?;
|
||||||
Ok(m) => m,
|
|
||||||
};
|
|
||||||
|
|
||||||
if mount_point.len() > 0 {
|
if mount_point.len() > 0 {
|
||||||
mount_list.push(mount_point);
|
mount_list.push(mount_point);
|
||||||
|
Loading…
Reference in New Issue
Block a user