Skip to content

Commit 6630405

Browse files
committed
Rewrite the negated xor
Signed-off-by: Johannes Tuerk <johannes.tuerk@lissi.id>
1 parent d833d35 commit 6630405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WalletFramework.Oid4Vc/Oid4Vp/Dcql/Models/CredentialMetaQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static Validation<CredentialMetaQuery> FromJObject(JObject json)
5656
})
5757
.ToOption();
5858

59-
if (!(vcts.IsSome ^ doctype.IsSome))
59+
if (vcts.IsSome == doctype.IsSome)
6060
{
6161
return new ObjectRequirementsAreNotMetError<CredentialMetaQuery>(
6262
"In the CredentialMetaQuery the 'vct_values' and 'doctype_value' must be mutually exclusive.");

0 commit comments

Comments
 (0)