small change to only-gzip.js to remove warning (#449)

This commit is contained in:
Skot 2024-11-03 19:49:55 -06:00 committed by GitHub
parent b5d0ea56d2
commit d91ed0c661
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ fs.readdir(directory, (err, files) => {
if (stats.isDirectory()) {
// If it's a directory, call rmdir after deleting its contents
fs.rmdir(filePath, { recursive: true }, (err) => {
fs.rm(filePath, { recursive: true }, (err) => {
if (err) throw err;
console.log(`Removed directory: ${filePath}`);
});