summaryrefslogtreecommitdiff
path: root/source/features/mark-merge-commits-in-list.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-06-26 04:30:43 -0400
committerGravatar GitHub <noreply@github.com> 2020-06-26 10:30:43 +0200
commitc6c727ca571c91d1ff426e218ccadb075cdb2af6 (patch)
treee1855bb6c6d37f0b28b97be73192316fec2067e5 /source/features/mark-merge-commits-in-list.tsx
parent15da229b3a29483f076782361ac429854f18e18b (diff)
downloadrefined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.gz
refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.zst
refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.zip
Lint and avoid errors (#3256)
Diffstat (limited to 'source/features/mark-merge-commits-in-list.tsx')
-rw-r--r--source/features/mark-merge-commits-in-list.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/mark-merge-commits-in-list.tsx b/source/features/mark-merge-commits-in-list.tsx
index d2179d36..23b6f42d 100644
--- a/source/features/mark-merge-commits-in-list.tsx
+++ b/source/features/mark-merge-commits-in-list.tsx
@@ -25,7 +25,7 @@ const filterMergeCommits = async (commits: string[]): Promise<string[]> => {
const mergeCommits = [];
for (const [key, commit] of Object.entries<AnyObject>(repository)) {
- if (commit.parents.totalCount === 2) {
+ if (commit.parents.totalCount >= 2) {
mergeCommits.push(key.slice(1));
}
}