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:
parent
194c45a98b
commit
c04bf6ab09
1 changed files with 1 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue