Fix coding style.
This commit is contained in:
parent
9122f9b291
commit
3a0413d8bb
@ -40,6 +40,6 @@
|
||||
"devDependencies": {
|
||||
"mocha": "^2.1.0",
|
||||
"must": "^0.13.1",
|
||||
"standard": "*"
|
||||
"standard": "^5.3.1"
|
||||
}
|
||||
}
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user