github.js: fix this.author null error
This commit is contained in:
parent
d7d55de678
commit
87abab3765
|
@ -12,7 +12,9 @@ jQuery.fn.listCommits = function(username, repository, branch) {
|
|||
$(commits).each(function(i) {
|
||||
var githubUrl = 'https://github.com/' + username + '/' + repository + '/commit/' + this.sha;
|
||||
var shortMessage = cutLines(this.commit.message);
|
||||
if (this.author !== null) {
|
||||
var author = this.author.login;
|
||||
}
|
||||
if (author === '') {
|
||||
author = this.author.name;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue