Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
chore: fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizencc authored and kellertk committed Sep 27, 2022
1 parent c47258d commit 7f38160
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/leaderboard-badger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class LeaderboardBadger extends Badger {
console.log('index', index);

// contributor has no prior merged PRs
if (!index) { return sortedUsernames.length; }
if (index < 0) { return sortedUsernames.length; }

console.log(sortedUsernames);
return index - 1;
Expand Down

0 comments on commit 7f38160

Please sign in to comment.