Skip to content

Commit

Permalink
Remove meaningless processing
Browse files Browse the repository at this point in the history
numLinesEst does not seem to be used anywhere after this.
  • Loading branch information
abetomo committed Sep 12, 2017
1 parent 61faee9 commit f7ec2df
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/chai/utils/inspect.js
Expand Up @@ -332,10 +332,7 @@ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
}

function reduceToSingleString(output, base, braces) {
var numLinesEst = 0;
var length = output.reduce(function(prev, cur) {
numLinesEst++;
if (cur.indexOf('\n') >= 0) numLinesEst++;
return prev + cur.length + 1;
}, 0);

Expand Down

0 comments on commit f7ec2df

Please sign in to comment.