Skip to content

Commit

Permalink
Merge pull request ccxt#1687 from mkutny/rocklint
Browse files Browse the repository at this point in the history
therock: linting
  • Loading branch information
kroitor authored Feb 1, 2018
2 parents 637daad + 6735a9d commit 01ff1c9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions js/therock.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use strict";
'use strict';

// ---------------------------------------------------------------------------

Expand All @@ -8,7 +8,6 @@ const { ExchangeError } = require ('./base/errors');
// ---------------------------------------------------------------------------

module.exports = class therock extends Exchange {

describe () {
return this.deepExtend (super.describe (), {
'id': 'therock',
Expand Down Expand Up @@ -229,7 +228,7 @@ module.exports = class therock extends Exchange {

async createOrder (symbol, type, side, amount, price = undefined, params = {}) {
await this.loadMarkets ();
if (type == 'market')
if (type === 'market')
price = 0;
let response = await this.privatePostFundsFundIdOrders (this.extend ({
'fund_id': this.marketId (symbol),
Expand All @@ -253,7 +252,7 @@ module.exports = class therock extends Exchange {
sign (path, api = 'public', method = 'GET', params = {}, headers = undefined, body = undefined) {
let url = this.urls['api'] + '/' + this.version + '/' + this.implodeParams (path, params);
let query = this.omit (params, this.extractParams (path));
if (api == 'private') {
if (api === 'private') {
this.checkRequiredCredentials ();
let nonce = this.nonce ().toString ();
let auth = nonce + url;
Expand All @@ -276,4 +275,4 @@ module.exports = class therock extends Exchange {
throw new ExchangeError (this.id + ' ' + this.json (response));
return response;
}
}
};

0 comments on commit 01ff1c9

Please sign in to comment.