Skip to content

Commit

Permalink
agent: remove useless match
Browse files Browse the repository at this point in the history
Remove useless match.

Signed-off-by: Tim Zhang <tim@hyper.sh>
  • Loading branch information
Tim-Zhang committed Oct 15, 2020
1 parent 1d8def6 commit 2f690a2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/agent/src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2f690a2

Please sign in to comment.