Explorar el Código

Remove ELEMENT_NODE check

ghorsington hace 4 años
padre
commit
4a9c37f1cb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bot/src/commands/forums_news_checker.ts

+ 1 - 1
bot/src/commands/forums_news_checker.ts

@@ -35,7 +35,7 @@ export class ForumsNewsChecker {
         this.turndown.addRule("link", {
             filter: (node: HTMLElement) => node.nodeName === "A" && node.getAttribute("href") != null,
             replacement: (content: string, node: Node) => {
-                logger.info("Node type: %s, htmlelement type: %s", node.nodeType, Node.ELEMENT_NODE);
+                logger.info("Node type: %s", node.nodeType);
                 return (isHtmlNode(node) ? node.getAttribute("href") : null) ?? "";
             }
         });