Cleaning lint issue : openwrt/wifi.go:39:⚠️ declaration of res shadows declaration at openwrt/wifi.go:31 (vetshadow)
This commit is contained in:
parent
3f36175f1a
commit
de0255fd03
|
@ -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
|
||||
|
|
Reference in New Issue