Skip to content

Commit b84a0e5

Browse files
committed
lint: avoid redefinition of the built-in function close
1 parent 996eafd commit b84a0e5

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
@@ -508,7 +508,7 @@ func (s *ArduinoCoreServerImpl) Monitor(stream rpc.ArduinoCoreService_MonitorSer
508508
}
509509
}
510510
}
511-
if close := msg.GetClose(); close {
511+
if closeMsg := msg.GetClose(); closeMsg {
512512
if err := portProxy.Close(); err != nil {
513513
logrus.WithError(err).Debug("Error closing monitor port")
514514
}

0 commit comments

Comments
 (0)