Skip to content

Commit 2cfce26

Browse files
committed
Merge master
2 parents 35d2ca6 + 98b1bd1 commit 2cfce26

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

errcheck/excludes.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ var (
3333
"fmt.Fprintf(os.Stderr)",
3434
"fmt.Fprintln(os.Stderr)",
3535

36+
// io
37+
"(*io.PipeReader).CloseWithError",
38+
"(*io.PipeWriter).CloseWithError",
39+
3640
// math/rand
3741
"math/rand.Read",
3842
"(*math/rand.Rand).Read",

testdata/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"bytes"
55
"crypto/sha256"
66
"fmt"
7+
"io"
78
"io/ioutil"
89
"math/rand"
910
mrand "math/rand"
@@ -147,6 +148,9 @@ func main() {
147148
rand.Read(nil)
148149
mrand.Read(nil)
149150
sha256.New().Write([]byte{})
151+
pr, pw := io.Pipe()
152+
pr.CloseWithError(nil)
153+
pw.CloseWithError(nil)
150154

151155
ioutil.ReadFile("main.go") // UNCHECKED
152156

0 commit comments

Comments
 (0)