diff options
| author | ST-DDT <[email protected]> | 2024-03-06 17:35:53 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-06 16:35:53 +0000 |
| commit | 2716865a0441b8502c8d0ee3efbdbe1bcebe0101 (patch) | |
| tree | 2b98c5b34f4dfbd4eab56e8463b9b9f5c72f428a /src/modules/location | |
| parent | ade91fd30d6b5fbcc2ab2534502467b1e0f3b086 (diff) | |
| download | faker-2716865a0441b8502c8d0ee3efbdbe1bcebe0101.tar.xz faker-2716865a0441b8502c8d0ee3efbdbe1bcebe0101.zip | |
infra(unicorn): switch-case-braces (#2721)
Diffstat (limited to 'src/modules/location')
| -rw-r--r-- | src/modules/location/index.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 97120766..92284560 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -355,12 +355,17 @@ export class LocationModule extends ModuleBase { const { variant = 'alpha-2' } = options; const key = (() => { switch (variant) { - case 'numeric': + case 'numeric': { return 'numeric'; - case 'alpha-3': + } + + case 'alpha-3': { return 'alpha3'; - case 'alpha-2': + } + + case 'alpha-2': { return 'alpha2'; + } } })(); |
