Skip to content
Prev Previous commit
Next Next commit
lint: avoid redefinition of the built-in function close
  • Loading branch information
cmaglie committed Jan 2, 2024
commit 2cf3f8f7d894b0b51a25fcf2ba3e60cba6caff7b
2 changes: 1 addition & 1 deletion commands/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorSer
}
}
}
if close := msg.GetClose(); close {
if closeMsg := msg.GetClose(); closeMsg {
if err := portProxy.Close(); err != nil {
logrus.WithError(err).Debug("Error closing monitor port")
}
Expand Down