Skip to content

Commit effe50d

Browse files
committed
remove commented-out spHandlerClose call in FindPortByName for cleaner code
1 parent 4da1624 commit effe50d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

serial.go

-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ func (sh *serialhub) FindPortByName(portname string) (*serport, bool) {
9696
for port := range sh.ports {
9797
if strings.EqualFold(port.portConf.Name, portname) {
9898
// we found our port
99-
//spHandlerClose(port)
10099
return port, true
101100
}
102101
}

0 commit comments

Comments
 (0)