Skip to content

Commit

Permalink
Removed unneeded async keyword (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
PastelStoic authored Dec 15, 2023
1 parent b75bbca commit 9aa2172
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/generate/src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ ${params.types.query.trim().replace(/`/g, "\\`")}\`${hasArgs ? `, args` : ""});

const tsImpl = `${queryDefs}
export async function ${functionName}(client: Executor${
export function ${functionName}(client: Executor${
hasArgs ? `, args: ${argsInterfaceName}` : ""
}): Promise<${returnsInterfaceName}> {
return client.${method}(\`\\
Expand All @@ -228,7 +228,6 @@ ${functionBody}
`;

const denoImpl = `
// deno-lint-ignore-file require-await
${tsImpl}`;

const jsImpl = `async function ${functionName}(client${
Expand Down

0 comments on commit 9aa2172

Please sign in to comment.