From f2922155de01b734e3e8b3f50be8f263ec13cacd Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 18:38:44 +0800 Subject: *: Lint --- format/pktline/errors.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'format/pktline/errors.go') diff --git a/format/pktline/errors.go b/format/pktline/errors.go index d07227e6..866ff467 100644 --- a/format/pktline/errors.go +++ b/format/pktline/errors.go @@ -1,9 +1,6 @@ package pktline -import ( - "errors" - "fmt" -) +import "errors" var ( // ErrInvalidLength indicates a malformed 4-byte hexadecimal length header. @@ -30,5 +27,5 @@ func (e *ProtocolError) Error() string { return "pktline: protocol error" } - return fmt.Sprintf("pktline: protocol error: %s", e.Reason) + return "pktline: protocol error: " + e.Reason } -- cgit v1.3.1-10-gc9f91