瀏覽代碼

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

Loading…
取消
儲存