diff --git a/src/core/pathfind.js b/src/core/pathfind.js index 67f19f2939..94443e56f2 100644 --- a/src/core/pathfind.js +++ b/src/core/pathfind.js @@ -11,8 +11,8 @@ const Amount = require('./amount').Amount; * the 'end' and 'superceded' events. */ -function PathFind(remote, src_account, dst_account, - dst_amount, src_currencies) { +function PathFind(remote, src_account, dst_account, dst_amount, src_currencies +) { EventEmitter.call(this); this.remote = remote; diff --git a/src/core/remote.js b/src/core/remote.js index 93bc3a436f..648d328a90 100644 --- a/src/core/remote.js +++ b/src/core/remote.js @@ -1747,8 +1747,8 @@ Remote.prototype._serverPrepareSubscribe = function(server, callback_) { const request = this.requestSubscribe(feeds); function serverSubscribed(message) { - self._stand_alone = !!message.stand_alone; - self._testnet = !!message.testnet; + self._stand_alone = Boolean(message.stand_alone); + self._testnet = Boolean(message.testnet); self._handleLedgerClosed(message, server); self.emit('subscribed'); } @@ -2285,7 +2285,7 @@ Remote.prototype.requestRipplePathFind = function(options_, callback_) { destination_account: options_.dst_account, destination_amount: options_.dst_amount, source_currencies: options_.src_currencies - }, options_); + }, options_); } else { _.merge(options, makeOptions( 'ripple_path_find', @@ -2333,7 +2333,7 @@ Remote.prototype.requestPathFindCreate = function(options_, callback_) { destination_account: options_.dst_account, destination_amount: options_.dst_amount, source_currencies: options_.src_currencies - }, options_); + }, options_); } else { _.merge(options, makeOptions( 'path_find',