remove empty lines

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine 2021-12-20 13:13:35 -07:00
parent 4a42513ca2
commit 6c5d7e5da5

View File

@ -20,19 +20,16 @@ func (t *copyTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.
var err error var err error
input, err := pctx.FS.FromValue(v.Lookup("input")) input, err := pctx.FS.FromValue(v.Lookup("input"))
if err != nil { if err != nil {
return nil, err return nil, err
} }
inputState, err := input.Result().ToState() inputState, err := input.Result().ToState()
if err != nil { if err != nil {
return nil, err return nil, err
} }
sourceRoot, err := pctx.FS.FromValue(v.Lookup("source.root")) sourceRoot, err := pctx.FS.FromValue(v.Lookup("source.root"))
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -48,7 +45,6 @@ func (t *copyTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.
} }
destPath, err := v.Lookup("dest").String() destPath, err := v.Lookup("dest").String()
if err != nil { if err != nil {
return nil, err return nil, err
} }
@ -70,7 +66,6 @@ func (t *copyTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.
) )
result, err := s.Solve(ctx, outputState, pctx.Platform.Get()) result, err := s.Solve(ctx, outputState, pctx.Platform.Get())
if err != nil { if err != nil {
return nil, err return nil, err
} }