diff --git a/modules/compose/compose_api.go b/modules/compose/compose_api.go index ff23ce773b..409875537c 100644 --- a/modules/compose/compose_api.go +++ b/modules/compose/compose_api.go @@ -231,7 +231,6 @@ func (d *dockerCompose) Up(ctx context.Context, opts ...StackUpOption) error { Wait: upOptions.Wait, }, }) - if err != nil { return err } diff --git a/modules/compose/compose_local.go b/modules/compose/compose_local.go index 85643b08f1..2be2daf152 100644 --- a/modules/compose/compose_local.go +++ b/modules/compose/compose_local.go @@ -369,7 +369,7 @@ func executeCompose(dc *LocalDockerCompose, args []string) ExecError { } // initialise the command with the compose subcommand - var cmds = []string{dc.composeSubcommand} + cmds := []string{dc.composeSubcommand} pwd := "." if len(dc.absComposeFilePaths) > 0 { pwd, _ = filepath.Split(dc.absComposeFilePaths[0])