Skip to content

Commit

Permalink
fix: unacessary paratheses removed (eclipse-tractusx#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
leandro-cavalcante authored Jul 30, 2024
1 parent 2140222 commit 279902f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public async Task<Guid> CreateFrameworkCredential(CreateFrameworkCredentialReque

private async Task<string> 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));
}
Expand Down

0 comments on commit 279902f

Please sign in to comment.