From de0255fd03e6d6865dcd5b3ac04a0a1ed414dafd Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 20 Sep 2018 17:11:21 +0200 Subject: [PATCH] Cleaning lint issue : openwrt/wifi.go:39::warning: declaration of res shadows declaration at openwrt/wifi.go:31 (vetshadow) --- openwrt/wifi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrt/wifi.go b/openwrt/wifi.go index 97174d7..9507b9f 100644 --- a/openwrt/wifi.go +++ b/openwrt/wifi.go @@ -36,7 +36,7 @@ func (w *Wifi) GetWifiCells() int { for res.Stdout == "Scanning not possible" { time.Sleep(1) - res := w.exec.Run("iwinfo", w.iface, "scan") + res = w.exec.Run("iwinfo", w.iface, "scan") if res.ReturnCode != 0 { log.Fatal(res.Stderr) return res.ReturnCode