chore: upgrade to azure-sdk v40.2.0
chore: use autorest v0.9.6 fix go module issue fix go module error
This commit is contained in:
4
vendor/github.com/Azure/azure-sdk-for-go/storage/entity.go
generated
vendored
4
vendor/github.com/Azure/azure-sdk-for-go/storage/entity.go
generated
vendored
@@ -207,7 +207,7 @@ func (e *Entity) Delete(force bool, options *EntityOptions) error {
|
||||
uri := e.Table.tsc.client.getEndpoint(tableServiceName, e.buildPath(), query)
|
||||
resp, err := e.Table.tsc.client.exec(http.MethodDelete, uri, headers, nil, e.Table.tsc.auth)
|
||||
if err != nil {
|
||||
if resp.StatusCode == http.StatusPreconditionFailed {
|
||||
if resp != nil && resp.StatusCode == http.StatusPreconditionFailed {
|
||||
return fmt.Errorf(etagErrorTemplate, err)
|
||||
}
|
||||
return err
|
||||
@@ -433,7 +433,7 @@ func (e *Entity) updateMerge(force bool, verb string, options *EntityOptions) er
|
||||
uri := e.Table.tsc.client.getEndpoint(tableServiceName, e.buildPath(), query)
|
||||
resp, err := e.Table.tsc.client.exec(verb, uri, headers, bytes.NewReader(body), e.Table.tsc.auth)
|
||||
if err != nil {
|
||||
if resp.StatusCode == http.StatusPreconditionFailed {
|
||||
if resp != nil && resp.StatusCode == http.StatusPreconditionFailed {
|
||||
return fmt.Errorf(etagErrorTemplate, err)
|
||||
}
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user