From 2c9f9c4f9cd6bbd61c766635076897bbb0e5f618 Mon Sep 17 00:00:00 2001 From: dushixiang Date: Sun, 31 Oct 2021 17:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E7=AC=A6?= =?UTF-8?q?=E5=90=88=20golangci-lint=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/sshd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/sshd.go b/server/api/sshd.go index e5f5fe4..565b5aa 100644 --- a/server/api/sshd.go +++ b/server/api/sshd.go @@ -27,7 +27,7 @@ import ( func sessionHandler(sess *ssh.Session) { defer func() { - (*sess).Close() + _ = (*sess).Close() }() username := (*sess).User()