chore(inputs.cisco_telemetry_mdt): Resolve linter with error check (#14552)

This commit is contained in:
Joshua Powers 2024-01-09 08:43:02 -07:00 committed by GitHub
parent 193ad373aa
commit d7aaafce79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ func (c *CiscoTelemetryMDT) acceptTCPClients() {
c.wg.Add(1)
go func() {
c.Log.Debugf("Accepted Cisco MDT TCP dialout connection from %s", conn.RemoteAddr())
if err := c.handleTCPClient(conn); err != nil {
if c.handleTCPClient(conn) != nil {
c.acc.AddError(err)
}
c.Log.Debugf("Closed Cisco MDT TCP dialout connection from %s", conn.RemoteAddr())