diff options
| author | Shinigami <[email protected]> | 2023-04-03 21:14:12 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-03 19:14:12 +0000 |
| commit | cddbb959f13aa29a7264174b1fc4eaa4271cf900 (patch) | |
| tree | 8300b70595bb2effd9f4ac22dd98203c61d1f3c5 /scripts/generateLocales.ts | |
| parent | 71232ba04616e9ef098b7bf088b07f05b014e1d9 (diff) | |
| download | faker-cddbb959f13aa29a7264174b1fc4eaa4271cf900.tar.xz faker-cddbb959f13aa29a7264174b1fc4eaa4271cf900.zip | |
chore: activate eslint no-else-return (#2009)
Diffstat (limited to 'scripts/generateLocales.ts')
| -rw-r--r-- | scripts/generateLocales.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index b721cb90..2af0c46a 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -102,17 +102,17 @@ function removeTsSuffix(files: string[]): string[] { function escapeImport(parent: string, module: string): string { if (['name', 'type', 'switch', parent].includes(module)) { return `${module}_`; - } else { - return module; } + + return module; } function escapeField(parent: string, module: string): string { if (['name', 'type', 'switch', parent].includes(module)) { return `${module}: ${module}_`; - } else { - return module; } + + return module; } function generateLocaleFile(locale: string): void { |
