Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed May 23, 2023
1 parent afbc0d4 commit dfa0ca7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ const UniversalResolverURL = "https://dev.uniresolver.io/1.0/identifiers"
var UniversalDIDResolver = packers.DIDResolverHandlerFunc(func(did string) (*verifiable.DIDDocument, error) {
didDoc := &verifiable.DIDDocument{}

url := fmt.Sprintf("%s/%s", UniversalResolverURL, did)
resp, err := http.Get(url)
URL := fmt.Sprintf("%s/%s", UniversalResolverURL, did)

resp, err := http.Get(URL)

if err != nil {
return nil, err
}
Expand All @@ -52,6 +54,7 @@ var UniversalDIDResolver = packers.DIDResolverHandlerFunc(func(did string) (*ver
if err != nil {
return nil, err
}

err = json.Unmarshal(body, didDoc)
if err != nil {
return nil, err
Expand Down

0 comments on commit dfa0ca7

Please sign in to comment.