mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:23:28 +02:00
Fix all JSHint complaints in Node.js code.
This commit is contained in:
@@ -40,8 +40,8 @@ module.exports = syrup.serial()
|
||||
})
|
||||
.then(function() {
|
||||
return adb.shell(options.serial, util.format(
|
||||
"export CLASSPATH='%s';"
|
||||
+ " exec app_process /system/bin '%s'"
|
||||
"export CLASSPATH='%s';" +
|
||||
" exec app_process /system/bin '%s'"
|
||||
, apk.path
|
||||
, apk.main
|
||||
))
|
||||
@@ -199,7 +199,7 @@ module.exports = syrup.serial()
|
||||
.then(openService)
|
||||
.then(function() {
|
||||
router
|
||||
.on(wire.PhysicalIdentifyMessage, function(channel, message) {
|
||||
.on(wire.PhysicalIdentifyMessage, function(channel) {
|
||||
identity()
|
||||
push.send([
|
||||
channel
|
||||
|
||||
@@ -9,7 +9,8 @@ module.exports = syrup.serial()
|
||||
.dependency(require('../support/router'))
|
||||
.dependency(require('../support/push'))
|
||||
.dependency(require('../support/quit'))
|
||||
.define(function(options, adb, router, push, quit) {
|
||||
.dependency(require('./owner'))
|
||||
.define(function(options, adb, router, push, quit, owner) {
|
||||
var log = logger.createLogger('device:plugins:logcat')
|
||||
|
||||
function openService() {
|
||||
|
||||
@@ -14,7 +14,8 @@ module.exports = syrup.serial()
|
||||
.dependency(require('../support/sub'))
|
||||
.dependency(require('../support/channels'))
|
||||
.dependency(require('../support/quit'))
|
||||
.define(function(options, identity, input, router, push, sub, channels, quit) {
|
||||
.define(function(options, identity, input, router, push, sub, channels,
|
||||
quit) {
|
||||
var log = logger.createLogger('device:plugins:owner')
|
||||
var owner = null
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ module.exports = syrup.serial()
|
||||
|
||||
function readableListener() {
|
||||
var chunk
|
||||
while (chunk = stream.read()) {
|
||||
while ((chunk = stream.read())) {
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.envelope(new wire.TransactionProgressMessage(
|
||||
|
||||
@@ -18,7 +18,7 @@ module.exports = syrup.serial()
|
||||
sub.subscribe(channel)
|
||||
channels.register(channel, Infinity)
|
||||
|
||||
router.on(wire.ProbeMessage, function(channel, message) {
|
||||
router.on(wire.ProbeMessage, function() {
|
||||
push.send([
|
||||
wireutil.global
|
||||
, wireutil.envelope(new wire.DeviceIdentityMessage(
|
||||
|
||||
@@ -17,7 +17,7 @@ module.exports = syrup.serial()
|
||||
|
||||
function openService() {
|
||||
return devutil.ensureUnusedPort(adb, options.serial, service.port)
|
||||
.then(function(port) {
|
||||
.then(function() {
|
||||
return adb.shell(options.serial, [
|
||||
remote.bin
|
||||
, '--lib', remote.lib
|
||||
|
||||
Reference in New Issue
Block a user