Skip to content

Commit

Permalink
Update lib/rules/await-async-queries.ts
Browse files Browse the repository at this point in the history
Signed-off-by: Michaël De Boey <info@michaeldeboey.be>
  • Loading branch information
MichaelDeBoey authored Oct 19, 2024
1 parent a582606 commit bfbd457
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/rules/await-async-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@ export default createTestingLibraryRule<Options, MessageIds>({
node: identifierNode,
messageId: 'awaitAsyncQuery',
data: { name: identifierNode.name },
fix: (fixer) => {
const fixes = references.map((ref) =>
fix: (fixer) =>
references.map((ref) =>
fixer.insertTextBefore(ref.identifier, 'await ')
);
return fixes;
},
),
});
return;
}
Expand Down

0 comments on commit bfbd457

Please sign in to comment.