Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 6d75bfc

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: few small refactors
1 parent 0467b2f commit 6d75bfc

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/utils/__tests__/utils.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import * as utils from '@site/src/utils';
2-
import {
3-
LOCALHOST_APP_ID,
4-
VERCEL_DEPLOYMENT_APP_ID,
5-
OAUTH_URL,
6-
DEFAULT_WS_SERVER,
7-
} from '../constants';
2+
import { LOCALHOST_APP_ID, DEFAULT_WS_SERVER } from '../constants';
83
const {
94
getAccountsFromSearchParams,
105
getAppId,

src/utils/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export const isHost = (hostname: string) => {
6060
* @returns {string} proper appId for the project
6161
*/
6262
export const getAppId = () => {
63-
// if not localhost, then one of the following:
6463
if (isHost('localhost')) return LOCALHOST_APP_ID;
6564
if (isHost('staging-api.deriv.com')) return STAGING_APP_ID;
6665
if (isHost('deriv-api-docs.binary.sx')) return VERCEL_DEPLOYMENT_APP_ID;
@@ -131,7 +130,6 @@ export const getServerConfig = () => {
131130
oauth: config_server_url,
132131
};
133132
} else {
134-
const isLocalHost = isHost('localhost');
135133
return {
136134
serverUrl: DEFAULT_WS_SERVER,
137135
appId: getAppId(),

0 commit comments

Comments
 (0)