From 5f8211773d861f1dedf944e6643bc9a249a71575 Mon Sep 17 00:00:00 2001 From: braginini Date: Sun, 29 Aug 2021 13:23:58 +0200 Subject: [PATCH] fix: lint error --- client/system/Info_darwin.go | 2 +- client/system/info_freebsd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/system/Info_darwin.go b/client/system/Info_darwin.go index 3190dd702..65f6a46f5 100644 --- a/client/system/Info_darwin.go +++ b/client/system/Info_darwin.go @@ -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) } diff --git a/client/system/info_freebsd.go b/client/system/info_freebsd.go index 9267c498d..390bb1dfe 100644 --- a/client/system/info_freebsd.go +++ b/client/system/info_freebsd.go @@ -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) }