fix: lint error

This commit is contained in:
braginini 2021-08-29 13:23:58 +02:00
parent 64ca05c8e7
commit 5f8211773d
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
func GetInfo() *Info {
out := _getInfo()
for strings.Index(out, "broken pipe") != -1 {
for strings.Contains(info, "broken pipe") {
out = _getInfo()
time.Sleep(500 * time.Millisecond)
}

View File

@ -12,7 +12,7 @@ import (
func GetInfo() *Info {
out := _getInfo()
for strings.Index(out, "broken pipe") != -1 {
for strings.Contains(info, "broken pipe") {
out = _getInfo()
time.Sleep(500 * time.Millisecond)
}