mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
Fix lint errors in remote.js and pathfind.js
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
@@ -2294,7 +2294,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',
|
||||
@@ -2342,7 +2342,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',
|
||||
|
||||
Reference in New Issue
Block a user