aboutsummaryrefslogtreecommitdiff
path: root/format/sideband64k/decoder.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/decoder.go
parentformat/sideband64k: Add side-band-64k (diff)
signatureNo signature
format/sideband64k: Lint
Diffstat (limited to 'format/sideband64k/decoder.go')
-rw-r--r--format/sideband64k/decoder.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/format/sideband64k/decoder.go b/format/sideband64k/decoder.go
index 8c2b48d5..b54e7d39 100644
--- a/format/sideband64k/decoder.go
+++ b/format/sideband64k/decoder.go
@@ -35,6 +35,7 @@ func NewDecoder(r io.Reader, opts ReadOptions) *Decoder {
opts: opts,
}
d.dec.SetMaxData(pktline.LargePacketDataMax)
+
return d
}
@@ -44,6 +45,7 @@ func NewDecoder(r io.Reader, opts ReadOptions) *Decoder {
func (d *Decoder) SetMaxData(n int) {
if n <= 0 {
d.maxData = DataMax
+
return
}
@@ -54,6 +56,7 @@ func (d *Decoder) SetMaxData(n int) {
func (d *Decoder) ReadFrame() (Frame, error) {
if d.peeked {
d.peeked = false
+
return cloneFrame(d.peek), d.peekErr
}