We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f65ac commit 8620e6fCopy full SHA for 8620e6f
extension/src/experiments/model/collect.ts
@@ -108,13 +108,18 @@ const transformExpState = (
108
return experiment
109
}
110
111
+const skipCommit = (
112
+ acc: { [sha: string]: CommitData },
113
+ sha: string | undefined
114
+): boolean => !sha || !!acc[sha]
115
+
116
const collectCommitData = (
117
acc: { [sha: string]: CommitData },
118
commit: string
119
) => {
120
const [sha, author, date, refNamesWithKey] = trimAndSplit(commit)
121
- if (!sha) {
122
+ if (skipCommit(acc, sha)) {
123
return
124
125
0 commit comments