Skip to content

Commit 212f1f3

Browse files
committed
chore: fix typo in workspace.go (paylod)
1 parent 1896541 commit 212f1f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/workspace.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ func (c *MeshStackProviderClient) ReadWorkspace(name string) (*MeshWorkspace, er
8181
}
8282

8383
func (c *MeshStackProviderClient) CreateWorkspace(workspace *MeshWorkspaceCreate) (*MeshWorkspace, error) {
84-
paylod, err := json.Marshal(workspace)
84+
payload, err := json.Marshal(workspace)
8585
if err != nil {
8686
return nil, err
8787
}
8888

89-
req, err := http.NewRequest("POST", c.endpoints.Workspaces.String(), bytes.NewBuffer(paylod))
89+
req, err := http.NewRequest("POST", c.endpoints.Workspaces.String(), bytes.NewBuffer(payload))
9090
if err != nil {
9191
return nil, err
9292
}
@@ -119,12 +119,12 @@ func (c *MeshStackProviderClient) CreateWorkspace(workspace *MeshWorkspaceCreate
119119
func (c *MeshStackProviderClient) UpdateWorkspace(name string, workspace *MeshWorkspaceCreate) (*MeshWorkspace, error) {
120120
targetUrl := c.urlForWorkspace(name)
121121

122-
paylod, err := json.Marshal(workspace)
122+
payload, err := json.Marshal(workspace)
123123
if err != nil {
124124
return nil, err
125125
}
126126

127-
req, err := http.NewRequest("PUT", targetUrl.String(), bytes.NewBuffer(paylod))
127+
req, err := http.NewRequest("PUT", targetUrl.String(), bytes.NewBuffer(payload))
128128
if err != nil {
129129
return nil, err
130130
}

0 commit comments

Comments
 (0)