From ad310f9fde4fffaafdea0138fc8773b8481cc7bb Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Mon, 28 Jan 2019 16:20:23 +0100 Subject: [PATCH] Fix staticcheck S1023 Static check was complaining about code that looked like _ = <-ch when it wants to see simply <-ch There was only one instance of this in govmm and this commit fixes that instance. Signed-off-by: Mark Ryan --- qemu/qmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/qmp.go b/qemu/qmp.go index 3811e052dd..74431c12d4 100644 --- a/qemu/qmp.go +++ b/qemu/qmp.go @@ -525,7 +525,7 @@ func (q *QMP) mainLoop() { } /* #nosec */ _ = q.conn.Close() - _ = <-fromVMCh + <-fromVMCh failOutstandingCommands(cmdQueue) close(q.disconnectedCh) }()