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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy