diff options
author | kao <zichongkao@gmail.com> | 2018-12-08 08:35:00 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:19:31 +0800 |
commit | 93422eab55f674ed33168a4731884e54d5a9ca78 (patch) | |
tree | a3829d1abdfd07171319db5454d9a4336fc62888 /packages/pipeline | |
parent | 74e07b63de9688aa0dca2ce69863203766db6008 (diff) | |
download | dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.gz dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.bz2 dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.lz dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.xz dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.tar.zst dexon-sol-tools-93422eab55f674ed33168a4731884e54d5a9ca78.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[]; |