para de cometer errores lpm
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user