From dc9d7d5041a585ca1c55fb902a16621fa9bce71b Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 12:43:23 +0100 Subject: [PATCH] ax(ueps): remove redundant comment restating code in default switch case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkg/ueps/reader.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/ueps/reader.go b/pkg/ueps/reader.go index eeec07f..fa3b4fc 100644 --- a/pkg/ueps/reader.go +++ b/pkg/ueps/reader.go @@ -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)