From c04bf6ab09b14518e9f336f141a251f097ea93d3 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 11:24:54 +0100 Subject: [PATCH] ax(ueps): rename single-letter receiver e to packetErr in packetError.Error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RFC-025 Principle 1: single-letter names are only permitted for i (range), _ (discards), t (tests), and c (*core.Core). The receiver variable e is not in the allowed list — packetErr is predictable and removes the mapping overhead. Co-Authored-By: Charon --- pkg/ueps/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index c0538a8..4a8c158 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -16,7 +16,7 @@ var errTLVValueTooLarge = packetError("TLV value too large for 1-byte length hea // var errVersionMismatch = packetError("UEPS version not 0x09") type packetError string -func (e packetError) Error() string { return string(e) } +func (packetErr packetError) Error() string { return string(packetErr) } // writeTLV(buffer, TagVersion, []byte{0x09}); writeTLV(buffer, TagHMAC, hmacSignature); buffer.WriteByte(TagPayload) const (