actually its existSync
This commit is contained in:
parent
ce09c7ce09
commit
f943ac1c01
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class nolightCommand extends Command {
|
||||||
});
|
});
|
||||||
|
|
||||||
async function apng() {
|
async function apng() {
|
||||||
if (fs.readFileSync('./img/nolight.png')) {
|
if (fs.existsSync('./img/nolight.png')) {
|
||||||
fs.unlink('./img/nolight.png', (err) => {
|
fs.unlink('./img/nolight.png', (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue