From 75b42b9e40b6465ae9954719da553c8ad2bcefe0 Mon Sep 17 00:00:00 2001 From: Umberto Baldi <34278123+umbynos@users.noreply.github.com> Date: Wed, 23 Feb 2022 11:56:53 +0100 Subject: [PATCH] fix `go vet` failing, followup of #668 (#693) --- serial.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serial.go b/serial.go index 743cbfa1f..59b80e8cf 100755 --- a/serial.go +++ b/serial.go @@ -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 {