diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /format/pktline/errors.go | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to 'format/pktline/errors.go')
| -rw-r--r-- | format/pktline/errors.go | 7 |
1 files changed, 2 insertions, 5 deletions
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 } |
