Skip to content

Commit 5946a68

Browse files
committed
Removed unneded initialization
1 parent 0622368 commit 5946a68

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

serial.go

-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ func (sp *SerialPortList) List() {
137137

138138
// discoverLoop periodically update the list of ports found
139139
func discoverLoop() {
140-
serialPorts.Mu.Lock()
141-
serialPorts.Ports = make([]SpPortItem, 0)
142-
serialPorts.Mu.Unlock()
143-
144140
go func() {
145141
for {
146142
if !upload.Busy {

0 commit comments

Comments
 (0)