Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: avoid unnecessary error checking in startVM
Browse files Browse the repository at this point in the history
Remove redundant error checking in startVM.

Signed-off-by: Marco Vedovati <[email protected]>
  • Loading branch information
marcov committed May 16, 2019
1 parent a27a3e7 commit f89834a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions virtcontainers/sandbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,8 @@ func (s *Sandbox) startVM() (err error) {
if err != nil {
return err
}
err = vm.assignSandbox(s)
if err != nil {
return err
}
return nil

return vm.assignSandbox(s)
}

return s.hypervisor.startSandbox(vmStartTimeout)
Expand Down

0 comments on commit f89834a

Please sign in to comment.