ax(ueps): use var declaration for header in ReadAndVerify
Replaces `header := UEPSHeader{}` with `var header UEPSHeader` for
consistency with the surrounding zero-value var declarations in the
same block — predictable, uniform pattern over mixed init styles.
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
d98073caa6
commit
bec37d0a84
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ type ParsedPacket struct {
|
|||
// if err == nil { dispatch(packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload) }
|
||||
func ReadAndVerify(reader *bufio.Reader, sharedSecret []byte) (*ParsedPacket, error) {
|
||||
var hmacInputBuffer bytes.Buffer
|
||||
header := UEPSHeader{}
|
||||
var header UEPSHeader
|
||||
var hmacSignature []byte
|
||||
var payload []byte
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue