fix: lint error

This commit is contained in:
braginini 2021-08-29 13:22:52 +02:00
parent 307d41c08a
commit 64ca05c8e7

View File

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