Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31ff27d

Browse files
committed
fixup! chore: refactor and extract stopWorkspace function
1 parent9389dd1 commit31ff27d

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
ifbflags.provisionerLogDebug {
8484
wbr.LogLevel=codersdk.ProvisionerLogLevelDebug
8585
}
86-
build,err:=client.CreateWorkspaceBuild(inv.Context(),workspace.ID,wbr)
87-
iferr!=nil {
88-
return codersdk.WorkspaceBuild{},err
89-
}
90-
91-
returnbuild,nil
86+
returnclient.CreateWorkspaceBuild(inv.Context(),workspace.ID,wbr)
9287
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp