From 289dd01cbf3b5e46b7d8c9839130c29bbcd6d861 Mon Sep 17 00:00:00 2001 From: Haishan Date: Fri, 7 Dec 2018 00:23:36 +0800 Subject: [PATCH] chore: fix linting errors --- src/api/configs.js | 6 +----- src/api/logs.js | 6 +----- src/api/proxies.js | 6 +----- src/api/traffic.js | 6 +----- 4 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/api/configs.js b/src/api/configs.js index bc6df8f..592f9fb 100644 --- a/src/api/configs.js +++ b/src/api/configs.js @@ -1,8 +1,4 @@ -import { - getURLAndInit, - genCommonHeaders, - getAPIBaseURL -} from 'm/request-helper'; +import { getURLAndInit } from 'm/request-helper'; const endpoint = '/configs'; diff --git a/src/api/logs.js b/src/api/logs.js index 948a23f..6de5b65 100644 --- a/src/api/logs.js +++ b/src/api/logs.js @@ -1,8 +1,4 @@ -import { - getURLAndInit, - genCommonHeaders, - getAPIBaseURL -} from 'm/request-helper'; +import { getURLAndInit } from 'm/request-helper'; const endpoint = '/logs'; const textDecoder = new TextDecoder('utf-8', { stream: true }); diff --git a/src/api/proxies.js b/src/api/proxies.js index a38d92d..caa6da4 100644 --- a/src/api/proxies.js +++ b/src/api/proxies.js @@ -1,8 +1,4 @@ -import { - getURLAndInit, - genCommonHeaders, - getAPIBaseURL -} from 'm/request-helper'; +import { getURLAndInit } from 'm/request-helper'; const endpoint = '/proxies'; /* diff --git a/src/api/traffic.js b/src/api/traffic.js index 8d1e3b7..68a7ff9 100644 --- a/src/api/traffic.js +++ b/src/api/traffic.js @@ -1,8 +1,4 @@ -import { - getURLAndInit, - genCommonHeaders, - getAPIBaseURL -} from 'm/request-helper'; +import { getURLAndInit } from 'm/request-helper'; const endpoint = '/traffic'; const textDecoder = new TextDecoder('utf-8', { stream: true });