Skip to content

Commit

Permalink
Merge pull request #105 from tombuildsstuff/bugfix/table-exists
Browse files Browse the repository at this point in the history
bugfix: no body is needed for a GET request (table/tables)
  • Loading branch information
manicminer authored Feb 26, 2024
2 parents a046cd9 + 7d06ea2 commit 9c02373
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions storage/2020-08-04/table/tables/exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ func (c Client) Exists(ctx context.Context, tableName string) (resp TableExistsR
return
}

err = req.Marshal(&createTableRequest{TableName: tableName})
if err != nil {
return resp, fmt.Errorf("marshalling request")
}

resp.HttpResponse, err = req.Execute(ctx)
if err != nil {
err = fmt.Errorf("executing request: %+v", err)
Expand Down
6 changes: 0 additions & 6 deletions storage/2023-11-03/table/tables/exists.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ func (c Client) Exists(ctx context.Context, tableName string) (result TableExist
return
}

err = req.Marshal(&createTableRequest{TableName: tableName})
if err != nil {
err = fmt.Errorf("marshalling request")
return
}

var resp *client.Response
resp, err = req.Execute(ctx)
if resp != nil {
Expand Down

0 comments on commit 9c02373

Please sign in to comment.