Dependencies Update golang.org/x/tools v0.7.0 to v0.8.0

This commit is contained in:
Mohit Sharma
2023-04-14 04:39:43 -07:00
parent 0afa60086a
commit 6f90c53633
154 changed files with 764 additions and 1055 deletions

View File

@@ -88,13 +88,9 @@ func (p *pipe) Write(d []byte) (n int, err error) {
p.c.L = &p.mu
}
defer p.c.Signal()
if p.err != nil {
if p.err != nil || p.breakErr != nil {
return 0, errClosedPipeWrite
}
if p.breakErr != nil {
p.unread += len(d)
return len(d), nil // discard when there is no reader
}
return p.b.Write(d)
}