From: Mateusz Poliwczak Date: Thu, 2 Jan 2025 18:22:34 +0000 (+0000) Subject: internal/exportdata: add missing return X-Git-Tag: go1.24rc2~6^2~25 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=81566aff3a1787fc81d320be5c1b3cb7da081936;p=gostls13.git internal/exportdata: add missing return Change-Id: I9703c6a4a2ae4a608d33cf706106c92e9bd2aef7 GitHub-Last-Rev: 3eee41957d8a2d9908519c798f30d5ccc90c53fb GitHub-Pull-Request: golang/go#71096 Reviewed-on: https://go-review.googlesource.com/c/go/+/637962 Reviewed-by: Dmitri Shuralyov Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- diff --git a/src/internal/exportdata/exportdata.go b/src/internal/exportdata/exportdata.go index 27675923b5..861a47f49f 100644 --- a/src/internal/exportdata/exportdata.go +++ b/src/internal/exportdata/exportdata.go @@ -85,6 +85,7 @@ func ReadUnified(r *bufio.Reader) (data []byte, err error) { if n < 0 { err = fmt.Errorf("invalid size (%d) in the archive file: %d bytes remain without section headers (recompile package)", size, n) + return } // Read n bytes from buf.