Skip to content

Commit

Permalink
Remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoVictor committed Oct 11, 2022
1 parent 636b73f commit 2361964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tsc-paths-replacer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function replace(text: string, file: string): string {

async function handle(file: string): Promise<void> {
const content = await readFile(file, 'utf-8');
const code = await replace(content, file);
const code = replace(content, file);
if (code !== content) {
await writeFile(file, code, 'utf-8');
}
Expand Down

0 comments on commit 2361964

Please sign in to comment.