Skip to content

Commit

Permalink
fix go vet failing, followup of #668 (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
umbynos authored Feb 23, 2022
1 parent 4946a1a commit 75b42b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ func spList(network bool) {
var err error
if network {
NetworkPorts.mu.Lock()
ls, err = json.MarshalIndent(NetworkPorts, "", "\t")
ls, err = json.MarshalIndent(&NetworkPorts, "", "\t")
NetworkPorts.mu.Unlock()
} else {
SerialPorts.mu.Lock()
ls, err = json.MarshalIndent(SerialPorts, "", "\t")
ls, err = json.MarshalIndent(&SerialPorts, "", "\t")
SerialPorts.mu.Unlock()
}
if err != nil {
Expand Down

0 comments on commit 75b42b9

Please sign in to comment.