Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
esskar committed Jan 6, 2025
1 parent 08b008f commit ffa916b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion csharp/Svix/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static bool SecureCompare(ReadOnlySpan<char> a, ReadOnlySpan<char> b)
var result = 0;
for (var i = 0; i < a.Length; i++)
{
result |= a[i] ^b[i];
result |= a[i] ^ b[i];
}

return result == 0;
Expand Down
2 changes: 0 additions & 2 deletions csharp/Svix/Webhook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ public void Verify(ReadOnlySpan<char> payload, WebHeaderCollection headers)
throw new WebhookVerificationException("No matching signature found");
}



private static void VerifyTimestamp(ReadOnlySpan<char> timestampHeader)
{
DateTimeOffset timestamp;
Expand Down

0 comments on commit ffa916b

Please sign in to comment.