From a793bccae6d568d3f30534d66bea3d5a1e8d9302 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 23 Jul 2019 10:07:06 -0500 Subject: golangci-lint cleanup a PR slipped through without running the new linter. this cleans things up for the master branch. Signed-off-by: baude --- libpod/oci_attach_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpod/oci_attach_linux.go') diff --git a/libpod/oci_attach_linux.go b/libpod/oci_attach_linux.go index 7157ee2f7..22afa7416 100644 --- a/libpod/oci_attach_linux.go +++ b/libpod/oci_attach_linux.go @@ -188,7 +188,9 @@ func setupStdioChannels(streams *AttachStreams, conn *net.UnixConn, detachKeys [ var err error if streams.AttachInput { _, err = utils.CopyDetachable(conn, streams.InputStream, detachKeys) - conn.CloseWrite() + if connErr := conn.CloseWrite(); connErr != nil { + logrus.Errorf("unable to close conn: %q", connErr) + } } stdinDone <- err }() -- cgit v1.2.3-54-g00ecf