From 86eadc7d67102e8e37e46ac7978839e3a442c6e9 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 23 Jul 2021 15:00:43 +0200 Subject: [PATCH] reduce complexity (linter) Signed-off-by: Nicolas De Loof --- pkg/compose/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/compose/run.go b/pkg/compose/run.go index d6c64da9..4da052e4 100644 --- a/pkg/compose/run.go +++ b/pkg/compose/run.go @@ -52,6 +52,10 @@ func (s *composeService) RunOneOffContainer(ctx context.Context, project *types. 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) if err != nil { return 0, err