From 279902fabf37bedf786b6f05c9a9ddc8bf18b801 Mon Sep 17 00:00:00 2001 From: leandro-cavalcante <162341380+leandro-cavalcante@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:56:05 +0200 Subject: [PATCH] fix: unacessary paratheses removed (#22) --- .../BusinessLogic/IssuerBusinessLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/issuer/SsiCredentialIssuer.Service/BusinessLogic/IssuerBusinessLogic.cs b/src/issuer/SsiCredentialIssuer.Service/BusinessLogic/IssuerBusinessLogic.cs index 093ec442..733bf09c 100644 --- a/src/issuer/SsiCredentialIssuer.Service/BusinessLogic/IssuerBusinessLogic.cs +++ b/src/issuer/SsiCredentialIssuer.Service/BusinessLogic/IssuerBusinessLogic.cs @@ -462,7 +462,7 @@ public async Task CreateFrameworkCredential(CreateFrameworkCredentialReque private async Task GetHolderInformation(string didDocumentLocation, CancellationToken cancellationToken) { - if (!Uri.TryCreate(didDocumentLocation, UriKind.Absolute, out var uri) || (uri.Scheme != "https" || !string.IsNullOrEmpty(uri.Query) || !string.IsNullOrEmpty(uri.Fragment) || UrlPathInvalidCharsRegex.IsMatch(uri.AbsolutePath)) + if (!Uri.TryCreate(didDocumentLocation, UriKind.Absolute, out var uri) || uri.Scheme != "https" || !string.IsNullOrEmpty(uri.Query) || !string.IsNullOrEmpty(uri.Fragment) || UrlPathInvalidCharsRegex.IsMatch(uri.AbsolutePath)) { throw ControllerArgumentException.Create(IssuerErrors.INVALID_DID_LOCATION, null, nameof(didDocumentLocation)); }