aboutsummaryrefslogtreecommitdiff
path: root/format/sideband64k/errors.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /format/sideband64k/errors.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'format/sideband64k/errors.go')
-rw-r--r--format/sideband64k/errors.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/format/sideband64k/errors.go b/format/sideband64k/errors.go
index c04d7caa..44e7c165 100644
--- a/format/sideband64k/errors.go
+++ b/format/sideband64k/errors.go
@@ -1,9 +1,6 @@
package sideband64k
-import (
- "errors"
- "fmt"
-)
+import "errors"
var (
// ErrTooLarge indicates a payload exceeds configured sideband data limits.
@@ -26,5 +23,5 @@ func (e *ProtocolError) Error() string {
return "sideband64k: protocol error"
}
- return fmt.Sprintf("sideband64k: protocol error: %s", e.Reason)
+ return "sideband64k: protocol error: " + e.Reason
}