ax(ueps): rename tsBuf to threatScoreBytes (AX principle 1)

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 07:32:57 +01:00
parent 23d2f91570
commit 38b22f96a0
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

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