Skip to content

Commit 6a21b9e

Browse files
Fix prune process for cloud (#660)
Should terminate w/ the checkpoint
1 parent 04085a1 commit 6a21b9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/up/prune.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ import (
1010

1111
func (ctx *Context) Prune() error {
1212
if ctx.Cloud {
13-
if err := ctx.runCheckpoint(ctx.Manifest.Checkpoint, "prune:cloud", func() error {
13+
return ctx.runCheckpoint(ctx.Manifest.Checkpoint, "prune:cloud", func() error {
1414
return ctx.pruneCloud()
15-
}); err != nil {
16-
return err
17-
}
15+
})
1816
}
1917

2018
repoRoot, err := git.Root()

0 commit comments

Comments
 (0)