Skip to content

Commit

Permalink
fix checking error not found properly
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Sep 3, 2024
1 parent db8e2ec commit 6037240
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/services/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op
if !gen {
return document.NewDidNotFoundResolution(err.Error()), nil
}
}

if err != nil && opts.State != nil {
} else if err != nil && opts.State != nil {
return document.NewDidNotFoundResolution(err.Error()), nil
}

Expand Down

0 comments on commit 6037240

Please sign in to comment.