mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 20:54:26 +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.
|
||||
Err(e) => return Err(e),
|
||||
Ok(m) => m,
|
||||
};
|
||||
// Todo need to rollback the mounted storage if err met.
|
||||
let mount_point = handler(&logger, &storage, sandbox.clone())?;
|
||||
|
||||
if mount_point.len() > 0 {
|
||||
mount_list.push(mount_point);
|
||||
|
Loading…
Reference in New Issue
Block a user