Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirCute committed Feb 6, 2025
1 parent 2bf2947 commit 09260fd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions drivers/189pc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,8 @@ func (y *Cloud189PC) put(ctx context.Context, url string, headers map[string]str
}

var erron RespErr
err = jsoniter.Unmarshal(body, &erron)
if err != nil {
return nil, err
}
err = xml.Unmarshal(body, &erron)
if err != nil {
return nil, err
}
_ = jsoniter.Unmarshal(body, &erron)
_ = xml.Unmarshal(body, &erron)
if erron.HasError() {
return nil, &erron
}
Expand Down

0 comments on commit 09260fd

Please # to comment.