ax(ueps): remove redundant comment restating code in default switch case
AX Principle 2 — comments must show usage examples, not restate what the code already says. The inline comment in the default branch of ReadAndVerify's tag-switch duplicated the three lines beneath it verbatim, adding zero information. Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
ee69484f5f
commit
dc9d7d5041
1 changed files with 0 additions and 1 deletions
|
|
@ -84,7 +84,6 @@ func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, er
|
|||
case TagHMAC:
|
||||
hmacSignature = tagValue
|
||||
default:
|
||||
// hmacInputBuffer.WriteByte(tagType); hmacInputBuffer.WriteByte(tagValueLength); hmacInputBuffer.Write(tagValue)
|
||||
hmacInputBuffer.WriteByte(tagType)
|
||||
hmacInputBuffer.WriteByte(tagValueLength)
|
||||
hmacInputBuffer.Write(tagValue)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue