ax(ueps): rename tsBuf to threatScoreBytes (AX principle 1)
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
23d2f91570
commit
38b22f96a0
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue