Merge pull request #4457 from cli/jg/fix-create-regression
codespace create: fix regression returning nil codespace
This commit is contained in:
commit
cff6cf9acf
1 changed files with 1 additions and 1 deletions
|
|
@ -425,7 +425,7 @@ type CreateCodespaceParams struct {
|
|||
func (a *API) CreateCodespace(ctx context.Context, params *CreateCodespaceParams) (*Codespace, error) {
|
||||
codespace, err := a.startCreate(ctx, params.RepositoryID, params.Machine, params.Branch, params.Location)
|
||||
if err != errProvisioningInProgress {
|
||||
return nil, err
|
||||
return codespace, err
|
||||
}
|
||||
|
||||
// errProvisioningInProgress indicates that codespace creation did not complete
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue