Skip to content

Commit

Permalink
fix: ignore contributions with empty type
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jul 8, 2023
1 parent 37f0d4a commit 5da85db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/find-repository-file-endorsements.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export async function findRepositoryFileEndorsements(
endorsements[login] = [];
}

// ignore if contribution type is empty
// example https://github.com/koolamusic/chakra-ui-autocomplete/commit/d0d313310bab0207a6c7938b69d6eb2e2285aec0#diff-cb22095514d0cab1f755ae3a7902f7d64d10199da210fbd1eb2b29eb758b38d2R23
if (!value.trim()) return endorsements;

try {
endorsements[login].push(value.toLowerCase());
} catch {
Expand Down

0 comments on commit 5da85db

Please sign in to comment.