diff --git a/pkg/ueps/reader.go b/pkg/ueps/reader.go index c853e36..8530b66 100644 --- a/pkg/ueps/reader.go +++ b/pkg/ueps/reader.go @@ -7,7 +7,6 @@ import ( "crypto/sha256" "encoding/binary" "errors" - "fmt" "io" ) @@ -129,7 +128,7 @@ func ReadAndVerify(r *bufio.Reader, sharedSecret []byte) (*ParsedPacket, error) if !hmac.Equal(signature, expectedMAC) { // Log this. This is a Threat Event. // "Axiom Violation: Integrity Check Failed" - return nil, fmt.Errorf("integrity violation: HMAC mismatch (ThreatScore +100)") + return nil, errors.New("integrity violation: HMAC mismatch (ThreatScore +100)") } return &ParsedPacket{