修改代码符合 golangci-lint 规则
This commit is contained in:
parent
10e7d2c3ee
commit
2c9f9c4f9c
@ -27,7 +27,7 @@ import (
|
||||
|
||||
func sessionHandler(sess *ssh.Session) {
|
||||
defer func() {
|
||||
(*sess).Close()
|
||||
_ = (*sess).Close()
|
||||
}()
|
||||
|
||||
username := (*sess).User()
|
||||
|
Loading…
Reference in New Issue
Block a user