修改代码符合 golangci-lint 规则

This commit is contained in:
dushixiang 2021-10-31 17:52:29 +08:00
parent 10e7d2c3ee
commit 2c9f9c4f9c

View File

@ -27,7 +27,7 @@ import (
func sessionHandler(sess *ssh.Session) {
defer func() {
(*sess).Close()
_ = (*sess).Close()
}()
username := (*sess).User()