From 6037240a0c68d6df135f0975ea9f66e4ed6a6aec Mon Sep 17 00:00:00 2001 From: daveroga Date: Tue, 3 Sep 2024 12:10:28 +0200 Subject: [PATCH] fix checking error not found properly --- pkg/services/did.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }