diff options
author | kao <zichongkao@gmail.com> | 2018-12-08 08:35:00 +0800 |
---|---|---|
committer | kao <zichongkao@gmail.com> | 2018-12-08 09:06:52 +0800 |
commit | f14603ca4d91ca72d9e81de53168230d85bc50aa (patch) | |
tree | 69eecd797c8c28f1b51513ffe01e7ab5e2104df1 /packages/pipeline | |
parent | aa4fcebdc71fa58b12dc12ab03d7697444416c09 (diff) | |
download | dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.gz dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.tar.zst dexon-sol-tools-f14603ca4d91ca72d9e81de53168230d85bc50aa.zip |
Implement prefer-template tslint rule
Diffstat (limited to 'packages/pipeline')
-rw-r--r-- | packages/pipeline/src/data_sources/bloxy/index.ts | 2 | ||||
-rw-r--r-- | packages/pipeline/src/data_sources/paradex/index.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/pipeline/src/data_sources/bloxy/index.ts b/packages/pipeline/src/data_sources/bloxy/index.ts index 31cd5bfd6..94468d25a 100644 --- a/packages/pipeline/src/data_sources/bloxy/index.ts +++ b/packages/pipeline/src/data_sources/bloxy/index.ts @@ -116,7 +116,7 @@ export class BloxySource { }, }); if (isError(resp.data)) { - throw new Error('Error in Bloxy API response: ' + resp.data.error); + throw new Error(`Error in Bloxy API response: ${resp.data.error}`); } return resp.data; } diff --git a/packages/pipeline/src/data_sources/paradex/index.ts b/packages/pipeline/src/data_sources/paradex/index.ts index 69a03d553..46d448f4b 100644 --- a/packages/pipeline/src/data_sources/paradex/index.ts +++ b/packages/pipeline/src/data_sources/paradex/index.ts @@ -1,9 +1,9 @@ import { fetchAsync, logUtils } from '@0x/utils'; const PARADEX_BASE_URL = 'https://api.paradex.io/consumer/v0'; -const ACTIVE_MARKETS_URL = PARADEX_BASE_URL + '/markets'; -const ORDERBOOK_ENDPOINT = PARADEX_BASE_URL + '/orderbook'; -const TOKEN_INFO_ENDPOINT = PARADEX_BASE_URL + '/tokens'; +const ACTIVE_MARKETS_URL = `${PARADEX_BASE_URL}/markets`; +const ORDERBOOK_ENDPOINT = `${PARADEX_BASE_URL}/orderbook`; +const TOKEN_INFO_ENDPOINT = `${PARADEX_BASE_URL}/tokens`; export const PARADEX_SOURCE = 'paradex'; export type ParadexActiveMarketsResponse = ParadexMarket[]; |