From 2f2d863bed49e9d8d8fd70f8bd68b542dd1de7f2 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 10:27:40 +0100 Subject: [PATCH] ax(ueps): fix comment in reader.go default case to use real variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default switch case comment referenced `unknownTag` which does not exist in scope; the actual variable is `tagByte`. AX Principle 2 requires comments to show real, runnable examples — not invented identifiers. Co-Authored-By: Charon --- pkg/ueps/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ueps/reader.go b/pkg/ueps/reader.go index 6ea0972..73b4bd3 100644 --- a/pkg/ueps/reader.go +++ b/pkg/ueps/reader.go @@ -86,7 +86,7 @@ func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, er case TagHMAC: hmacSignature = tagValue default: - // signedData.WriteByte(unknownTag); signedData.Write(tagValue) — unknown tags contribute to HMAC, blocking injection + // signedData.WriteByte(tagByte); signedData.Write(tagValue) — unknown tags contribute to HMAC, blocking injection signedData.WriteByte(tagByte) signedData.WriteByte(tagValueLength) signedData.Write(tagValue)