style: fix linting issues met ESLint
This commit is contained in:
parent
a30c4d0d32
commit
aa1a85e64e
24 changed files with 76 additions and 90 deletions
|
@ -19,5 +19,5 @@ export async function replaceAsync(str: string, regex: RegExp, replacementFn: (m
|
|||
const replacements: string[] = (await Promise.all(promises));
|
||||
|
||||
// Second run through matches: Replace them by their previously computed replacements.
|
||||
return str.replace(regex, () => replacements.pop()!!);
|
||||
return str.replace(regex, () => replacements.pop()!);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue