Skip to content

Commit

Permalink
small change to only-gzip.js to remove warning (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
skot authored Nov 4, 2024
1 parent b5d0ea5 commit d91ed0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/http_server/axe-os/only-gzip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
Expand Down

0 comments on commit d91ed0c

Please sign in to comment.