Skip to content

Commit 0b4cb85

Browse files
committed
Code formatting
Just moving it up to make clearer Signed-off-by: Ulysses Souza <[email protected]>
1 parent 86c925f commit 0b4cb85

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/compose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func RootCommand(dockerCli command.Cli, backend api.Service) *cobra.Command {
294294
return err
295295
}
296296

297-
// Reset DockerCli and APIClient to get possible `DOCKER_HOST` and/or `DOCKER_CONTEXT` loaded from environment file
297+
// Reset DockerCli and APIClient to get possible `DOCKER_HOST` and/or `DOCKER_CONTEXT` loaded from environment file.
298298
err = dockerCli.Apply(func(cli *command.DockerCli) error {
299299
return cli.Initialize(flags.NewClientOptions(),
300300
command.WithInitializeClient(func(_ *command.DockerCli) (client.APIClient, error) {

pkg/api/proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import (
2222
"github.com/compose-spec/compose-go/types"
2323
)
2424

25+
var _ Service = &ServiceProxy{}
26+
2527
// ServiceProxy implements Service by delegating to implementation functions. This allows lazy init and per-method overrides
2628
type ServiceProxy struct {
2729
BuildFn func(ctx context.Context, project *types.Project, options BuildOptions) error
@@ -59,8 +61,6 @@ func NewServiceProxy() *ServiceProxy {
5961
// Interceptor allow to customize the compose types.Project before the actual Service method is executed
6062
type Interceptor func(ctx context.Context, project *types.Project)
6163

62-
var _ Service = &ServiceProxy{}
63-
6464
// WithService configure proxy to use specified Service as delegate
6565
func (s *ServiceProxy) WithService(service Service) *ServiceProxy {
6666
s.BuildFn = service.Build

0 commit comments

Comments
 (0)