aboutsummaryrefslogtreecommitdiff
path: root/format/sideband64k/encoder.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 16:46:51 +0800
committerGravatar Runxi Yu2026-03-06 16:46:51 +0800
commit9e44418ce9d88f4159067b1ce2c808cb93e29c38 (patch)
tree4ff99e20df4ec1c6ddb8508202fcb28aa42551eb /format/sideband64k/encoder.go
parentformat/sideband64k: Add side-band-64k (diff)
signatureNo signature
format/sideband64k: Lint
Diffstat (limited to 'format/sideband64k/encoder.go')
-rw-r--r--format/sideband64k/encoder.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/format/sideband64k/encoder.go b/format/sideband64k/encoder.go
index 56854abf..4205d461 100644
--- a/format/sideband64k/encoder.go
+++ b/format/sideband64k/encoder.go
@@ -28,6 +28,7 @@ func NewEncoder(w pktline.WriteFlusher) *Encoder {
func (e *Encoder) SetMaxData(n int) {
if n <= 0 {
e.maxData = DataMax
+
return
}