Skip to content

Commit b350519

Browse files
committed
cleanup
1 parent 4f064d4 commit b350519

File tree

2 files changed

+0
-392
lines changed

2 files changed

+0
-392
lines changed

cli/restart.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,22 @@ func (r *RootCmd) restart() *clibase.Cmd {
3434
return err
3535
}
3636

37-
// get the workspace
3837
workspace, err := namedWorkspace(inv.Context(), client, inv.Args[0])
3938
if err != nil {
4039
return err
4140
}
4241

43-
// create a build - stop the workspace
4442
build, err := client.CreateWorkspaceBuild(ctx, workspace.ID, codersdk.CreateWorkspaceBuildRequest{
4543
Transition: codersdk.WorkspaceTransitionStop,
4644
})
4745
if err != nil {
4846
return err
4947
}
50-
// this seems to return the provisioner job - perhaps we are watching for an error
5148
err = cliui.WorkspaceBuild(ctx, out, client, build.ID)
5249
if err != nil {
5350
return err
5451
}
5552

56-
// create a build - start the workspace
5753
build, err = client.CreateWorkspaceBuild(ctx, workspace.ID, codersdk.CreateWorkspaceBuildRequest{
5854
Transition: codersdk.WorkspaceTransitionStart,
5955
})

0 commit comments

Comments
 (0)