para de cometer errores lpm

This commit is contained in:
Lemuel Marquez
2021-01-18 15:19:17 -06:00
parent b6efece6a5
commit 5933e6a782
+2 -1
View File
@@ -328,7 +328,8 @@ const carpetasRepetidas = async () => {
for (let i = 0; i < carpetas.length; i++) {
let aux = [carpetas[i]];
for (let j = i + 1; j < carpetas.length; j++) {
if (carpetas[i].name === carpetas[j].name) carpetas.push(carpetas[j]);
if (carpetas[i].name === carpetas[j].name) aux.push(carpetas[j]);
break;
}
if (aux.length > 1) repetidas.push(aux);
}