Skip to content

Commit

Permalink
Try to use a function declaration for the printOutput function instea…
Browse files Browse the repository at this point in the history
…d of var printOutput = function...
  • Loading branch information
papandreou committed Aug 28, 2017
1 parent 59fd2b7 commit dfbe1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Unexpected.js
Expand Up @@ -300,7 +300,7 @@ Unexpected.prototype.equal = function (actual, expected, depth, seen) {
Unexpected.prototype.inspect = function (obj, depth, outputOrFormat) {
var seen = [];
var that = this;
var printOutput = function (obj, currentDepth, output) {
function printOutput(obj, currentDepth, output) {
var objType = that.findTypeOf(obj);
if (currentDepth <= 0 && objType.is('object') && !objType.is('expect.it')) {
return output.text('...');
Expand Down

0 comments on commit dfbe1c5

Please sign in to comment.