pkg/daemon/action/sshdaemon.go
Method Server.SshStart
has 64 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (svr *Server) SshStart(ctx context.Context, req *rpc.SshStartRequest) (resp *rpc.SshStartResponse, err error) {
mux.Lock()
defer mux.Unlock()
var clientIP net.IP
Method Server.SshStart
has 6 return statements (exceeds 4 allowed). Open
Open
func (svr *Server) SshStart(ctx context.Context, req *rpc.SshStartRequest) (resp *rpc.SshStartResponse, err error) {
mux.Lock()
defer mux.Unlock()
var clientIP net.IP