eslint: add no-shadow

This commit is contained in:
Girish Ramakrishnan
2026-02-18 08:18:37 +01:00
parent 4d3e9dc49b
commit 4ed6fbbd74
40 changed files with 250 additions and 249 deletions
+2 -2
View File
@@ -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 || ''}`);
}