eslint: add no-shadow
This commit is contained in:
+2
-2
@@ -102,8 +102,8 @@ async function deleteAppDir(app, options) {
|
||||
// besides, we cannot delete those dirs anyway because of perms
|
||||
for (const entry of entries) {
|
||||
const fullPath = path.join(resolvedAppDataDir, entry);
|
||||
const stat = safe.fs.statSync(fullPath);
|
||||
if (stat && !stat.isDirectory()) {
|
||||
const entryStat = safe.fs.statSync(fullPath);
|
||||
if (entryStat && !entryStat.isDirectory()) {
|
||||
safe.fs.unlinkSync(fullPath);
|
||||
debug(`deleteAppDir - ${fullPath} ${safe.error?.message || ''}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user