Fix some lint errors after move to golangci-lint

This commit is contained in:
Neil Twigg
2022-12-30 09:47:01 +00:00
parent 7042fc1638
commit 14d0ba1c65
20 changed files with 24 additions and 43 deletions

View File

@@ -408,7 +408,6 @@ func expectLeftMostResult(t tLogger, c net.Conn, re *regexp.Regexp, buf *[]byte)
}
*buf = append(*buf, recv()...)
} else {
emptyCnt = 0
cutIdx := strings.Index(string(*buf), string(result)) + len(result)
*buf = (*buf)[cutIdx:]
return result