We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3491f0d commit 37b0ee0Copy full SHA for 37b0ee0
1 file changed
utils/setConfig.js
@@ -5,6 +5,7 @@ import { fileURLToPath } from "url";
5
6
const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
const CONFIG_PATH = path.join(__dirname, "..", "config.json");
8
+let cfg;
9
10
function getSanitizedLink(link) {
11
if (!/^https?:\/\//i.test(link)) {
@@ -52,7 +53,7 @@ async function inquireLink(type) {
52
53
}
54
55
export async function setConfig() {
- let cfg = {};
56
+ cfg = {};
57
58
const exists = fs.existsSync(CONFIG_PATH);
59
if (exists) {
0 commit comments