chore(parser): Remove extra Array.from call (#407)

This commit is contained in:
absidue
2023-05-20 23:00:15 +02:00
committed by GitHub
parent 1e07a184ff
commit 7c530d30ee

View File

@@ -509,7 +509,7 @@ export default class Parser {
return this.ignore_list.has(classname);
}
static #rt_nodes = new Map<string, YTNodeConstructor>(Array.from(Object.entries(YTNodes)));
static #rt_nodes = new Map<string, YTNodeConstructor>(Object.entries(YTNodes));
static #dynamic_nodes = new Map<string, YTNodeConstructor>();
static getParserByName(classname: string) {