Skip to content

Commit

Permalink
lint and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 committed Jul 26, 2023
1 parent bbb8907 commit 0a1d607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions did/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ func (d DIDWeb) resolveDocBytes(ctx context.Context) ([]byte, http.Header, error
if err != nil {
return nil, nil, errors.Wrapf(err, "getting doc %+v", docURL)
}
defer func(Body io.ReadCloser) {
_ = Body.Close()
}(resp.Body)
defer func() {
_ = resp.Body.Close()
}()
body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, nil, errors.Wrapf(err, "reading response %+v", resp)
Expand Down
2 changes: 1 addition & 1 deletion did/web/web_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func TestDIDWebValidate(t *testing.T) {
gock.New("https://demo.ssi-sdk.com").
Get("/.well-known/did.json").
Reply(200).
BodyString(`{"didDocument": {"id": "did:web:demo.ssi-sdk.com"}}`)
JSON(`{"didDocument": {"id": "did:web:demo.ssi-sdk.com"}}`)
defer gock.Off()

err := didWebToBeResolved.Validate(context.Background())
Expand Down

0 comments on commit 0a1d607

Please sign in to comment.