From 8a4010f4a5023d6c38bb53ab857ced5f520fcf89 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 07:48:46 +0100 Subject: [PATCH] ax(ueps): remove banned fmt import, use errors.New fmt.Errorf with static string replaced by errors.New. Removes banned import per AX RFC-025. Co-Authored-By: Charon --- pkg/ueps/reader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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{