chore: fix linter (#11028)

This commit is contained in:
andig 2023-12-06 18:29:32 +01:00 • committed by GitHub
parent 098a0fc2b5
commit 58e2421a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
91 changed files with 374 additions and 280 deletions

View file

@ -74,7 +74,7 @@ type ModbusHandler struct {
Timeout time.Duration
}
func (h *ModbusHandler) testRegister(log *util.Logger, conn gridx.Client) bool {
func (h *ModbusHandler) testRegister(_ *util.Logger, conn gridx.Client) bool {
var bytes []byte
var err error

View file

@ -35,7 +35,7 @@ type TcpHandler struct {
dialer net.Dialer
}
func (h *TcpHandler) Test(log *util.Logger, in ResultDetails) (res []ResultDetails) {
func (h *TcpHandler) Test(_ *util.Logger, in ResultDetails) (res []ResultDetails) {
for _, port := range h.Ports {
addr := net.JoinHostPort(in.IP, strconv.Itoa(port))
conn, err := h.dialer.Dial("tcp", addr)