Skip to content

Commit 6d68de1

Browse files
committed
lint: avoid redefinition of the built-in function close
1 parent a827eaf commit 6d68de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/daemon/daemon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorSer
469469
}
470470
}
471471
}
472-
if close := msg.GetClose(); close {
472+
if closeMsg := msg.GetClose(); closeMsg {
473473
if err := portProxy.Close(); err != nil {
474474
logrus.WithError(err).Debug("Error closing monitor port")
475475
}

0 commit comments

Comments
 (0)