more typo fixes

This commit is contained in:
Alan Donovan 2021-09-02 09:09:05 -04:00
parent 49ccdd3d21
commit c31fc05746
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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