Skip to content

Commit

Permalink
Add handling for when author is null
Browse files Browse the repository at this point in the history
  • Loading branch information
wallentx committed Apr 6, 2024
1 parent 4af960b commit f41fa6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ async function run() {
var username;
if (commits.data[i]['author']) {
username = commits.data[i]['author']['login'];
} else {
username = null;
}
const email = commits.data[i]['commit']['author']['email'];
commit_authors[username] = {
Expand Down

0 comments on commit f41fa6f

Please sign in to comment.