We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d08ee1a commit 3168614Copy full SHA for 3168614
examples/command/main.go
@@ -57,8 +57,6 @@ func pumpStdin(ws *websocket.Conn, w io.Writer) {
57
}
58
59
func pumpStdout(ws *websocket.Conn, r io.Reader, done chan struct{}) {
60
- defer func() {
61
- }()
62
s := bufio.NewScanner(r)
63
for s.Scan() {
64
ws.SetWriteDeadline(time.Now().Add(writeWait))
0 commit comments