Fix coding style.

This commit is contained in:
Julien Fontanet 2015-10-28 12:54:52 +01:00
parent 9122f9b291
commit 3a0413d8bb
2 changed files with 7 additions and 7 deletions

View File

@ -40,6 +40,6 @@
"devDependencies": {
"mocha": "^2.1.0",
"must": "^0.13.1",
"standard": "*"
"standard": "^5.3.1"
}
}

View File

@ -138,9 +138,9 @@ function Xo (opts) {
return
}
var method = notification.params.type === 'exit' ?
unsetMultiple :
setMultiple
var method = notification.params.type === 'exit'
? unsetMultiple
: setMultiple
method(this.objects, notification.params.items)
}.bind(this))
@ -207,13 +207,13 @@ Xo.prototype.signOut = function () {
signIn.reject(new SessionError('sign in aborted'))
}
return this.status === 'connected' ?
return this.status === 'connected'
// Attempt to sign out and ignore any return values and errors.
this._api.call('session.signOut').then(noop, noop) :
? this._api.call('session.signOut').then(noop, noop)
// Always return a promise.
Bluebird.resolve()
: Bluebird.resolve()
}
Xo.prototype._connect = function _connect () {