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:
parent
7d7dfce6ea
commit
7aada5fc78
1 changed files with 0 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue