From 6b5d1a54a930724ae2afda8e065fd95330dd2172 Mon Sep 17 00:00:00 2001 From: Yu Fang Date: Wed, 24 Feb 2021 22:14:15 +0800 Subject: [PATCH] =?UTF-8?q?windows=20adb=E8=BE=93=E5=87=BA=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/models.go b/config/models.go index 0b0977f..64b4ad3 100644 --- a/config/models.go +++ b/config/models.go @@ -73,7 +73,7 @@ func (cm *ConfigModel) ListDevices() (devices []*AdbDeviceInfo, err error) { } else { n = "\n" } - outN := strings.Split(strings.Trim(out, n), n) + outN := strings.Split(strings.Trim(strings.TrimSpace(out), n), n) log.Println(outN) log.Println(len(outN)) for _, line := range outN {