Skip to content

Commit cd05f2b

Browse files
committed
Minor formatting change
1 parent 3410d1b commit cd05f2b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages-exp/auth-exp/src/api/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function performApiRequest<T, V>(
6363
const errorMap = { ...SERVER_ERROR_MAP, ...customErrorMap };
6464
try {
6565
let body = {};
66-
const params: { [key: string]: string } = {
66+
const params: { [key: string]: string; } = {
6767
key: auth.config.apiKey
6868
};
6969
if (request) {
@@ -77,10 +77,9 @@ export async function performApiRequest<T, V>(
7777
}
7878

7979
const queryString = Object.keys(params)
80-
.map(
81-
key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`
82-
)
83-
.join('&');
80+
.map(key => {
81+
return `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`;
82+
}).join('&');
8483

8584
const response = await fetch(
8685
`${auth.config.apiScheme}://${auth.config.apiHost}${path}?${queryString}`,

0 commit comments

Comments
 (0)