ax(ueps): rename single-letter receiver e to packetErr in packetError.Error

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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 11:24:54 +01:00
parent 194c45a98b
commit c04bf6ab09
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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 (