Remove special case for exchange require
This commit is contained in:
parent
cf19be3693
commit
5d7f4fbc7b
1 changed files with 1 additions and 13 deletions
|
|
@ -25,19 +25,7 @@ var Trader = module.exports = function (db) {
|
|||
};
|
||||
|
||||
Trader.prototype._findExchange = function (name) {
|
||||
var exchange;
|
||||
|
||||
try {
|
||||
exchange = require('lamassu-' + name);
|
||||
} catch (err) {
|
||||
if (!err.message.match(/Cannot find module/)) {
|
||||
throw err;
|
||||
}
|
||||
|
||||
exchange = require(path.join(path.dirname(__dirname), 'exchanges', name));
|
||||
}
|
||||
|
||||
return exchange;
|
||||
return require('lamassu-' + name);
|
||||
};
|
||||
|
||||
Trader.prototype._findTicker = function (name) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue