Skip to content

Commit 31ff27d

Browse files
committed
fixup! chore: refactor and extract stopWorkspace function
1 parent 9389dd1 commit 31ff27d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cli/stop.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,5 @@ func stopWorkspace(inv *serpent.Invocation, client *codersdk.Client, workspace c
8383
if bflags.provisionerLogDebug {
8484
wbr.LogLevel = codersdk.ProvisionerLogLevelDebug
8585
}
86-
build, err := client.CreateWorkspaceBuild(inv.Context(), workspace.ID, wbr)
87-
if err != nil {
88-
return codersdk.WorkspaceBuild{}, err
89-
}
90-
91-
return build, nil
86+
return client.CreateWorkspaceBuild(inv.Context(), workspace.ID, wbr)
9287
}

0 commit comments

Comments
 (0)