From 8e59b39b71c684e3292529b4bee1b239d0dc1dc6 Mon Sep 17 00:00:00 2001 From: Ulysses Souza Date: Fri, 12 Aug 2022 20:16:00 +0200 Subject: [PATCH] Code formatting Just moving it up to make clearer Signed-off-by: Ulysses Souza --- pkg/api/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/proxy.go b/pkg/api/proxy.go index 5dcfa0e7f60..d023714bfb6 100644 --- a/pkg/api/proxy.go +++ b/pkg/api/proxy.go @@ -22,6 +22,8 @@ import ( "github.com/compose-spec/compose-go/types" ) +var _ Service = &ServiceProxy{} + // ServiceProxy implements Service by delegating to implementation functions. This allows lazy init and per-method overrides type ServiceProxy struct { BuildFn func(ctx context.Context, project *types.Project, options BuildOptions) error @@ -59,8 +61,6 @@ func NewServiceProxy() *ServiceProxy { // Interceptor allow to customize the compose types.Project before the actual Service method is executed type Interceptor func(ctx context.Context, project *types.Project) -var _ Service = &ServiceProxy{} - // WithService configure proxy to use specified Service as delegate func (s *ServiceProxy) WithService(service Service) *ServiceProxy { s.BuildFn = service.Build