aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-14 11:07:03 +0200
committerGitHub <[email protected]>2023-10-14 09:07:03 +0000
commite946e6a651b39d49a884acd9f6468bb18e985bf2 (patch)
tree058d76a86567dade923a22db2f7f57d957769dcb /src/modules
parente228183efc0fe74ee0438fbcb693932358921a20 (diff)
downloadfaker-e946e6a651b39d49a884acd9f6468bb18e985bf2.tar.xz
faker-e946e6a651b39d49a884acd9f6468bb18e985bf2.zip
infra(unicorn): catch-error-name (#2471)
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/helpers/index.ts2
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];
}