diff --git a/pkg/services/did.go b/pkg/services/did.go index f6d8d89..7f35c99 100644 --- a/pkg/services/did.go +++ b/pkg/services/did.go @@ -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 }