style: telnet移除命令信息在控制台的输出显示

This commit is contained in:
TsMask
2024-06-14 17:18:56 +08:00
parent 3956782e49
commit aa5e019172
2 changed files with 0 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ import (
// ConvertToStr 转换为string
func ConvertToStr(telnetClient *ConnTelnet, cmd string) (string, error) {
fmt.Println(cmd)
output, err := telnetClient.RunCMD(cmd)
if err != nil {
return "", err

View File

@@ -103,7 +103,6 @@ func (c *ConnTelnet) RunCMD(cmd string) (string, error) {
defer buf.Reset()
c.LastResult = buf.String()
fmt.Println(c.LastResult)
return c.LastResult, nil
}