Skip to content

Commit

Permalink
windows adb输出空格的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Feb 24, 2021
1 parent 49a1eea commit 6b5d1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6b5d1a5

Please sign in to comment.