mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
reduce complexity (linter)
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
0b72b502d3
commit
86eadc7d67
@ -52,6 +52,10 @@ func (s *composeService) RunOneOffContainer(ctx context.Context, project *types.
|
|||||||
return 0, nil
|
return 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return s.runInteractive(ctx, containerID, opts)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *composeService) runInteractive(ctx context.Context, containerID string, opts api.RunOptions) (int, error) {
|
||||||
r, err := s.getEscapeKeyProxy(opts.Stdin)
|
r, err := s.getEscapeKeyProxy(opts.Stdin)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user