🎨
This commit is contained in:
parent
460fb9cdb9
commit
d677a436ec
2 changed files with 3 additions and 3 deletions
|
@ -103,7 +103,7 @@ describe('crashReporter module', function () {
|
||||||
if (err) {
|
if (err) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let dumps = files.filter((f) => /\.dmp$/.test(f))
|
const dumps = files.filter((file) => /\.dmp$/.test(file))
|
||||||
if (!dumps.length) {
|
if (!dumps.length) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ describe('crashReporter module', function () {
|
||||||
// not deleted.
|
// not deleted.
|
||||||
fs.readdir(crashesDir, (err, files) => {
|
fs.readdir(crashesDir, (err, files) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
for (let file of files) {
|
for (const file of files) {
|
||||||
if (/\.dmp$/.test(file)) {
|
if (/\.dmp$/.test(file)) {
|
||||||
fs.unlinkSync(path.join(crashesDir, file))
|
fs.unlinkSync(path.join(crashesDir, file))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue