mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 06:53:20 +02:00
replace commands['ps'] with commands.ps which is suggested by ESLint
This commit is contained in:
@@ -50,17 +50,17 @@ devutil.listPidsByComm = function(adb, serial, comm, bin) {
|
||||
.then(function(properties) {
|
||||
var version = properties['ro.build.version.release']
|
||||
if (version.match(/^8\./) !== null) {
|
||||
commands["ps"] = 'ps -lef'
|
||||
commands.ps = 'ps -lef'
|
||||
}
|
||||
else {
|
||||
commands["ps"] = 'ps'
|
||||
commands.ps = 'ps'
|
||||
}
|
||||
resolve(commands)
|
||||
})
|
||||
}
|
||||
})
|
||||
.then(function(commands) {
|
||||
return adb.shell(serial, [commands["ps"]])
|
||||
return adb.shell(serial, [commands.ps])
|
||||
.then(function(out) {
|
||||
return new Promise(function(resolve) {
|
||||
var header = true
|
||||
|
||||
Reference in New Issue
Block a user