fix: lint example

Signed-off-by: rfyiamcool <rfyiamcool@163.com>
This commit is contained in:
rfyiamcool 2024-01-23 14:48:30 +08:00 committed by Alex Vulaj
parent d08ee1ad9b
commit 316861440d
1 changed files with 0 additions and 2 deletions

View File

@ -57,8 +57,6 @@ func pumpStdin(ws *websocket.Conn, w io.Writer) {
} }
func pumpStdout(ws *websocket.Conn, r io.Reader, done chan struct{}) { func pumpStdout(ws *websocket.Conn, r io.Reader, done chan struct{}) {
defer func() {
}()
s := bufio.NewScanner(r) s := bufio.NewScanner(r)
for s.Scan() { for s.Scan() {
ws.SetWriteDeadline(time.Now().Add(writeWait)) ws.SetWriteDeadline(time.Now().Add(writeWait))