소스 검색

Removes forEach call

main
Eric Amodio 6 년 전
부모
커밋
59b39fda2b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/git/parsers/blameParser.ts

+ 2
- 2
src/git/parsers/blameParser.ts 파일 보기

@ -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));

불러오는 중...
취소
저장