Skip to content

Commit 80fc3e2

Browse files
committed
fix go vet failing, followup of #668 (#693)
1 parent 73653fd commit 80fc3e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: serial.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ func spList(network bool) {
114114
var err error
115115
if network {
116116
NetworkPorts.mu.Lock()
117-
ls, err = json.MarshalIndent(NetworkPorts, "", "\t")
117+
ls, err = json.MarshalIndent(&NetworkPorts, "", "\t")
118118
NetworkPorts.mu.Unlock()
119119
} else {
120120
SerialPorts.mu.Lock()
121-
ls, err = json.MarshalIndent(SerialPorts, "", "\t")
121+
ls, err = json.MarshalIndent(&SerialPorts, "", "\t")
122122
SerialPorts.mu.Unlock()
123123
}
124124
if err != nil {

0 commit comments

Comments
 (0)