From 7aada5fc783483b84d7b4c6f50bdda3bfa749eca Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 09:01:28 +0100 Subject: [PATCH] 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 --- pkg/ueps/reader.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/ueps/reader.go b/pkg/ueps/reader.go index ff00962..ce21406 100644 --- a/pkg/ueps/reader.go +++ b/pkg/ueps/reader.go @@ -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 }