ax(ueps): align verifyError variable name with idiomatic err convention
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

Comment on line 126 showed `err` but implementation used `verifyError`,
violating AX Principle 2 (comment must match usage example) and Principle 1
(err is the RFC-sanctioned idiomatic name for local error variables).

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 11:06:48 +01:00
parent 58e5968b5f
commit 5ff08bfbd8
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -138,8 +138,8 @@ func TestPacket_MarshalAndSign_Ugly(t *testing.T) {
copy(corrupted, frame)
corrupted[len(corrupted)-1] ^= 0xFF
_, verifyError := ReadAndVerify(bufio.NewReader(bytes.NewReader(corrupted)), sharedSecret)
if verifyError == nil {
_, err = ReadAndVerify(bufio.NewReader(bytes.NewReader(corrupted)), sharedSecret)
if err == nil {
t.Error("expected HMAC integrity violation for corrupted frame, got nil")
}
}