X Tutup
Skip to content

Commit 400749d

Browse files
committed
Fix regression returning nil codespace
1 parent becc45a commit 400749d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/codespaces/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ type CreateCodespaceParams struct {
425425
func (a *API) CreateCodespace(ctx context.Context, params *CreateCodespaceParams) (*Codespace, error) {
426426
codespace, err := a.startCreate(ctx, params.RepositoryID, params.Machine, params.Branch, params.Location)
427427
if err != errProvisioningInProgress {
428-
return nil, err
428+
return codespace, err
429429
}
430430

431431
// errProvisioningInProgress indicates that codespace creation did not complete

0 commit comments

Comments
 (0)
X Tutup