github.js: remove unneeded parentheses

This commit is contained in:
XhmikosR 2013-03-02 18:55:39 +02:00 committed by Daniel Marjamäki
parent ae73466f97
commit ffc82a9d89
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ jQuery.fn.listCommits = function(username, repository, branch) {
$(commits).each(function(i) {
var githubUrl = 'https://github.com/' + username + '/' + repository + '/commit/' + this.sha,
shortMessage = cutLines(this.commit.message),
commitAuthor = (this.author !== null) ? this.author.login : this.commit.author.name;
commitAuthor = this.author !== null ? this.author.login : this.commit.author.name;
list.append('<li><a href="' + githubUrl + '">' + shortMessage + '</a> <em>by <strong>' + commitAuthor + '</strong></em></li>');