mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
internal/exportdata: add missing return
Change-Id: I9703c6a4a2ae4a608d33cf706106c92e9bd2aef7
GitHub-Last-Rev: 3eee41957d
GitHub-Pull-Request: golang/go#71096
Reviewed-on: https://go-review.googlesource.com/c/go/+/637962
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
parent
e7a8bd5d8b
commit
81566aff3a
1 changed files with 1 additions and 0 deletions
|
|
@ -85,6 +85,7 @@ func ReadUnified(r *bufio.Reader) (data []byte, err error) {
|
||||||
|
|
||||||
if n < 0 {
|
if n < 0 {
|
||||||
err = fmt.Errorf("invalid size (%d) in the archive file: %d bytes remain without section headers (recompile package)", size, n)
|
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.
|
// Read n bytes from buf.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue