Mining/pkg/ueps
Claude 0ab8c0fe7d
ax(ueps): remove redundant err shadow in ReadAndVerify payload branch
The inner scope re-declared `var err error` immediately before assigning
from `io.ReadAll`, unnecessarily shadowing the `err` already in scope from
`reader.ReadByte()`.  Removing the shadow simplifies the control flow and
eliminates the redundant declaration (AX Principle 1 — names should not
introduce unnecessary cognitive overhead).

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 10:39:30 +01:00
..
packet.go ax(ueps): replace abstract variable names in PacketBuilder comment with concrete values 2026-04-02 10:36:36 +01:00
packet_test.go ax(ueps): replace prose comment with usage example in MarshalAndSign test 2026-04-02 10:08:51 +01:00
reader.go ax(ueps): remove redundant err shadow in ReadAndVerify payload branch 2026-04-02 10:39:30 +01:00
reader_test.go ax(ueps): rename NewBuilder to NewPacketBuilder for AX Principle 1 compliance 2026-04-02 09:45:23 +01:00