Skip to content

Commit

Permalink
Use _.compact without the ternary.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Jan 29, 2016
1 parent 7e4452d commit 16dac60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function getParams(index) {
match[2] = match[2].replace(/(?:^|\n)[\t ]*\*[\t ]*/g, ' ');
result.push(match);
}
var tuples = match ? _.compact(match) : [];
var tuples = _.compact(match);
_.each(tuples, function(tuple){
result.push(tuple.trim());
});
Expand Down

0 comments on commit 16dac60

Please sign in to comment.