diff options
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]; } |
