From 2fe2e9891f35fb6378a7459c0c9e27ae40f2e8f3 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Thu, 8 Jun 2023 15:54:57 +0800 Subject: [PATCH] feat: shorten dns.js --- scripts/dns.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/scripts/dns.js b/scripts/dns.js index e948ae4..6ead137 100644 --- a/scripts/dns.js +++ b/scripts/dns.js @@ -6,21 +6,6 @@ var proxy = { on: { cloudflare_proxy: "on" } }; -/** - * Note: glob() is only an internal undocumented helper function (maybe risky). - * - * @param { String } filesPath - * @returns {{ - * name: string, - * data: { - * domain: string, - * subdomain: string, - * owner?: { email?: string }, - * records: { A?: string[], AAAA?: string[], CNAME?: string, MX?: object[], TXT?: object[] }, - * proxied: boolean - * }}[]} - */ - function getDomainsList(filesPath) { var result = []; var files = glob.apply(null, [filesPath, true, ".json"]); @@ -37,10 +22,6 @@ function getDomainsList(filesPath) { var domains = getDomainsList("../domains"); -/** - * @type {{}} - */ - var commit = {}; for (var idx in domains) {