Change let to const
This commit is contained in:
@@ -186,7 +186,7 @@ function parseAndMergeCategories(input: string, root: CustomEmojiFolderTree): Cu
|
|||||||
const parts = input.split('/').map(p => p.trim());
|
const parts = input.split('/').map(p => p.trim());
|
||||||
let currentNode: CustomEmojiFolderTree = root;
|
let currentNode: CustomEmojiFolderTree = root;
|
||||||
|
|
||||||
let currentPath = [];
|
const currentPath = [];
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
currentPath.push(part);
|
currentPath.push(part);
|
||||||
let existingNode = currentNode.children.find((node) => node.value === part);
|
let existingNode = currentNode.children.find((node) => node.value === part);
|
||||||
|
|||||||
Reference in New Issue
Block a user