From e946e6a651b39d49a884acd9f6468bb18e985bf2 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 14 Oct 2023 11:07:03 +0200 Subject: infra(unicorn): catch-error-name (#2471) --- src/modules/helpers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') 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]; } -- cgit v1.2.3