Skip to content

Commit

Permalink
nits: length-- and output +=
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg committed Apr 16, 2015
1 parent adc3ad9 commit add82b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/git/internal/git_commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ GitCommit.prototype.raw_log = function(sha1) {

// drop last line if it's blank
if (length > 0 && lines[length - 1].length === 0) {
length -= 1;
length--;
}

for(var i = 0; i < length; i++) {
output = output + ' ' + lines[i] + '\n';
output += ' ' + lines[i] + '\n';
}
// Return the output
return output + '\n';
Expand Down

0 comments on commit add82b5

Please sign in to comment.