Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Toktar committed Jul 13, 2022
1 parent df241ce commit 7e0b68e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/request_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (rs RequestService) dereferencePrimary(path string, did string, didUrl stri
dereferencingMetadata := types.NewDereferencingMetadata(didUrl, dereferenceOptions.Accept, types.DereferencingNotSupported)
return types.DidDereferencing{DereferencingMetadata: dereferencingMetadata}, nil
}

resource, isFound, err := rs.ledgerService.QueryResource(did, resourceId)
if err != nil {
return types.DidDereferencing{}, err
Expand Down
2 changes: 1 addition & 1 deletion services/request_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (ls MockLedgerService) QueryDIDDoc(did string) (cheqd.Did, cheqd.Metadata,
return ls.Did, ls.Metadata, isFound, nil
}

func (ls MockLedgerService) QueryResource(collectionDid string, resourceId string) (resource.Resource, bool, error) {
func (ls MockLedgerService) QueryResource(did string, resourceId string) (resource.Resource, bool, error) {
isFound := true
if ls.Resource.Header == nil {
isFound = false
Expand Down

0 comments on commit 7e0b68e

Please sign in to comment.