Skip to content

Commit

Permalink
fix: fixing invalid const declaration, causing errors in user system …
Browse files Browse the repository at this point in the history
…commands

closes #391, closes #392
  • Loading branch information
SilentVoid13 committed Sep 30, 2021
1 parent 143170b commit 2ca59f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/functions/user_functions/UserSystemFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export class UserSystemFunctions implements IGenerateObject {
FunctionsMode.INTERNAL
);

for (const [template, cmd] of this.plugin.settings.templates_pairs) {
for (const template_pair of this.plugin.settings.templates_pairs) {
const template = template_pair[0];
let cmd = template_pair[0];
if (!template || !cmd) {
continue;
}
Expand Down

0 comments on commit 2ca59f0

Please sign in to comment.