Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
  • Loading branch information
vito committed Jul 18, 2023
1 parent 1f5d9f6 commit 7768dc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions core/schema/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,6 @@ func (s *containerSchema) withExec(ctx *router.Context, parent *core.Container,
return parent.WithExec(ctx, s.gw, progSock, s.baseSchema.platform, args.ContainerExecOpts)
}

func (s *containerSchema) withDefaultExec(ctx *router.Context, parent *core.Container) (*core.Container, error) {
if parent.Meta == nil {
return s.withExec(ctx, parent, containerExecArgs{})
}
return parent, nil
}

func (s *containerSchema) exitCode(ctx *router.Context, parent *core.Container, args any) (int, error) {
progSock := &core.Socket{HostPath: s.progSock}
return parent.ExitCode(ctx, s.gw, progSock)
Expand Down
1 change: 1 addition & 0 deletions core/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func solveRef(ctx context.Context, gw bkgw.Client, def *pb.Definition) (bkgw.Ref
return res.Ref, nil
}

// goling: nocyclo
func (svc *Service) Start(ctx context.Context, gw bkgw.Client, progSock *Socket) (running *RunningService, err error) {
ctr := svc.Container
opts := svc.Exec
Expand Down

0 comments on commit 7768dc3

Please sign in to comment.