Cleaning lint issue : openwrt/wifi.go:39:⚠️ declaration of res shadows declaration at openwrt/wifi.go:31 (vetshadow)

This commit is contained in:
Philippe Caseiro 2018-09-20 17:11:21 +02:00
parent 3f36175f1a
commit de0255fd03
1 changed files with 1 additions and 1 deletions

View File

@ -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