mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 11:06:21 +00:00
api: Cleanup StartContainer()
Simple patch reducing the complexity of StartContainer(). Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
57773816b3
commit
982381bff0
@ -468,12 +468,7 @@ func StartContainer(ctx context.Context, sandboxID, containerID string) (VCConta
|
||||
}
|
||||
defer s.releaseStatelessSandbox()
|
||||
|
||||
c, err := s.StartContainer(containerID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return c, nil
|
||||
return s.StartContainer(containerID)
|
||||
}
|
||||
|
||||
// StopContainer is the virtcontainers container stopping entry point.
|
||||
|
Loading…
Reference in New Issue
Block a user