ax(ueps): remove duplicate inline usage comment from ReadAndVerify body

AX-2 violation: usage examples belong at the declaration site, not
scattered inside function bodies. The errIntegrityViolation usage hint
was already present at the variable declaration (line 17) and was
duplicated inside ReadAndVerify, creating noise in the implementation.

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 09:01:28 +01:00
parent 7d7dfce6ea
commit 7aada5fc78
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -116,7 +116,6 @@ func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, er
expectedMAC := messageAuthCode.Sum(nil)
if !hmac.Equal(signature, expectedMAC) {
// if errors.Is(err, errIntegrityViolation) { threatScore++; dropConnection() }
return nil, errIntegrityViolation
}