From 963de7fbd0e12347b75491203228e85e0d57a51f Mon Sep 17 00:00:00 2001 From: song Date: Sun, 4 Feb 2018 20:59:59 +0800 Subject: [PATCH] replace commands['ps'] with commands.ps which is suggested by ESLint --- lib/util/devutil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util/devutil.js b/lib/util/devutil.js index 33bcba3b..96859616 100644 --- a/lib/util/devutil.js +++ b/lib/util/devutil.js @@ -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