Skip to content

Commit

Permalink
rewrite resp body err only if proof err nil
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Feb 5, 2024
1 parent c3c8022 commit 8ded2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifiable/did_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (r HTTPDIDResolver) Resolve(ctx context.Context, did *w3c.DID) (out DIDDocu

defer func() {
err2 := resp.Body.Close()
if err != nil {
if err == nil {
err = errors.WithStack(err2)
}
}()
Expand Down

0 comments on commit 8ded2e3

Please sign in to comment.