Skip to content

Commit a3ec72b

Browse files
committed
[ws-daemon] Always remove temp backup file
1 parent d035b70 commit a3ec72b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/ws-daemon/pkg/content/service.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,7 @@ func (s *WorkspaceService) uploadWorkspaceContent(ctx context.Context, sess *ses
464464
}
465465
defer func() {
466466
tmpf.Close()
467-
if err != nil {
468-
os.Remove(tmpf.Name())
469-
}
467+
os.Remove(tmpf.Name())
470468
}()
471469

472470
var opts []archive.TarOption

0 commit comments

Comments
 (0)