more typo fixes
This commit is contained in:
parent
49ccdd3d21
commit
c31fc05746
2 changed files with 2 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ type SKU struct {
|
|||
func (a *API) GetCodespacesSKUs(ctx context.Context, user *User, repository *Repository, branch, location string) ([]*SKU, error) {
|
||||
req, err := http.NewRequest(http.MethodGet, githubAPI+"/vscs_internal/user/"+user.Login+"/skus", nil)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("err creating request: %v", err)
|
||||
return nil, fmt.Errorf("error creating request: %v", err)
|
||||
}
|
||||
|
||||
q := req.URL.Query()
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ func getBranchName(branch string) (string, error) {
|
|||
func getMachineName(ctx context.Context, machine string, user *api.User, repo *api.Repository, branch, location string, apiClient *api.API) (string, error) {
|
||||
skus, err := apiClient.GetCodespacesSKUs(ctx, user, repo, branch, location)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error getting codespace SKUs: %v", err)
|
||||
return "", fmt.Errorf("error requesting machine instance types: %v", err)
|
||||
}
|
||||
|
||||
// if user supplied a machine type, it must be valid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue