Sfoglia il codice sorgente

Removes forEach call

main
Eric Amodio 6 anni fa
parent
commit
59b39fda2b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      src/git/parsers/blameParser.ts

+ 2
- 2
src/git/parsers/blameParser.ts Vedi File

@ -137,14 +137,14 @@ export class GitBlameParser {
}
}
commits.forEach(c => {
for (const [, c] of commits) {
if (c.author === undefined) return;
const author = authors.get(c.author);
if (author === undefined) return;
author.lineCount += c.lines.length;
});
}
const sortedAuthors = new Map([...authors.entries()].sort((a, b) => b[1].lineCount - a[1].lineCount));

Caricamento…
Annulla
Salva