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

Commit

Permalink
api: Cleanup StartContainer()
Browse files Browse the repository at this point in the history
Simple patch reducing the complexity of StartContainer().

Signed-off-by: Sebastien Boeuf <[email protected]>
  • Loading branch information
Sebastien Boeuf committed Nov 12, 2018
1 parent 5777381 commit 982381b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions virtcontainers/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 982381b

Please sign in to comment.