diff options
| author | ST-DDT <[email protected]> | 2023-10-14 11:07:03 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-14 09:07:03 +0000 |
| commit | e946e6a651b39d49a884acd9f6468bb18e985bf2 (patch) | |
| tree | 058d76a86567dade923a22db2f7f57d957769dcb /src/modules | |
| parent | e228183efc0fe74ee0438fbcb693932358921a20 (diff) | |
| download | faker-e946e6a651b39d49a884acd9f6468bb18e985bf2.tar.xz faker-e946e6a651b39d49a884acd9f6468bb18e985bf2.zip | |
infra(unicorn): catch-error-name (#2471)
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/helpers/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 7548c15b..f4ceaaf4 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -1467,7 +1467,7 @@ export class HelpersModule extends SimpleHelpersModule { // If anyone actually needs to optimize this specific code path, please open a support issue on github try { params = JSON.parse(`[${parameters}]`); - } catch (err) { + } catch { // since JSON.parse threw an error, assume parameters was actually a string params = [parameters]; } |
