diff options
| author | ST-DDT <[email protected]> | 2024-04-21 20:33:36 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-21 18:33:36 +0000 |
| commit | 81d07189ec45b1e8871019a0e6aa54e60c7fd72a (patch) | |
| tree | 14aa02da5a05db9297cd2924298db318663cb8fc /scripts | |
| parent | b27d4fceebda1ff01b054d99e7211bd31ba108d1 (diff) | |
| download | faker-81d07189ec45b1e8871019a0e6aa54e60c7fd72a.tar.xz faker-81d07189ec45b1e8871019a0e6aa54e60c7fd72a.zip | |
infra(unicorn): no-await-expression-member (#2812)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/generate-locales.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/generate-locales.ts b/scripts/generate-locales.ts index 9e9c4bd3..d4268778 100644 --- a/scripts/generate-locales.ts +++ b/scripts/generate-locales.ts @@ -338,9 +338,7 @@ async function normalizeLocaleFile(filePath: string, definitionKey: string) { console.log(`Running data normalization for:`, filePath); - const fileContent = ( - await readFile(filePath, { encoding: 'utf8' }) - ).toString(); + const fileContent = await readFile(filePath, { encoding: 'utf8' }); const searchString = 'export default '; const compareIndex = fileContent.indexOf(searchString) + searchString.length; const compareString = fileContent.substring(compareIndex); |
