From 38b22f96a09f5dce1a50345c6bdf96021f1f3ead Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 07:32:57 +0100 Subject: [PATCH] ax(ueps): rename tsBuf to threatScoreBytes (AX principle 1) Co-Authored-By: Charon --- pkg/ueps/packet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index ed2256f..91b11c5 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -71,9 +71,9 @@ func (p *PacketBuilder) MarshalAndSign(sharedSecret []byte) ([]byte, error) { } // Threat Score is uint16, needs binary packing - tsBuf := make([]byte, 2) - binary.BigEndian.PutUint16(tsBuf, p.Header.ThreatScore) - if err := writeTLV(buf, TagThreatScore, tsBuf); err != nil { + threatScoreBytes := make([]byte, 2) + binary.BigEndian.PutUint16(threatScoreBytes, p.Header.ThreatScore) + if err := writeTLV(buf, TagThreatScore, threatScoreBytes); err != nil { return nil, err }