Skip to content

Commit

Permalink
refactor: remove unused async keywords (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Kuhrt <jason.kuhrt@dialogue.co>
  • Loading branch information
ultrox and Jason Kuhrt committed May 28, 2020
1 parent be27ac6 commit d09a567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Expand Up @@ -101,7 +101,7 @@ export class GraphQLClient {
}
}

export async function rawRequest<T = any>(
export function rawRequest<T = any>(
url: string,
query: string,
variables?: Variables,
Expand All @@ -117,7 +117,7 @@ export async function rawRequest<T = any>(
return client.rawRequest<T>(query, variables)
}

export async function request<T = any>(
export function request<T = any>(
url: string,
query: string,
variables?: Variables,
Expand All @@ -129,7 +129,7 @@ export async function request<T = any>(

export default request

async function getResult(response: Response): Promise<any> {
function getResult(response: Response): Promise<any> {
const contentType = response.headers.get('Content-Type')
if (contentType && contentType.startsWith('application/json')) {
return response.json()
Expand Down

0 comments on commit d09a567

Please sign in to comment.