Update blocklist.js

This commit is contained in:
Lucas Gabriel 2024-06-02 03:35:20 -03:00 committed by GitHub
parent 4b0e188467
commit 20301a620d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ const readBlocklist = () => {
} catch (error) {
if (error.code === 'ENOENT') {
console.log('WARN: Blocklist file not found. Creating a new one.');
fs.writeFileSync(blocklistPath, ''); // Create an empty blocklist file
fs.writeFileSync(blocklistPath, '');
} else {
console.error('WARN: Error reading blocklist:', error);
}