Style: format code by gofumpt (#761)

This commit is contained in:
yuhan6665 authored and GitHub committed 2021-10-20 00:57:14 +08:00
1 parent d77be80b40
commit e286cdcaa8
111 files changed
+293 -291

No files matched your search

+4 -2
View File
@@ -40,8 +40,10 @@ type pipe struct {
state state
}
var errBufferFull = errors.New("buffer full")
var errSlowDown = errors.New("slow down")
var (
errBufferFull = errors.New("buffer full")
errSlowDown = errors.New("slow down")
)
func (p *pipe) getState(forRead bool) error {
switch p.state {