Skip to content

Commit

Permalink
Don't rely on the legacy diff format
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jan 7, 2019
1 parent 4e9c541 commit 3e5b050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uninspected.js
Expand Up @@ -79,8 +79,8 @@ uninspected.assert = function(subject) {

uninspected.diff = function(a, b) {
var result = unexpected.diff(a, b, createOutput());
if (result && result.diff) {
uninspected.log(result.diff);
if (result) {
uninspected.log(result);
} else if (unexpected.equal(a, b)) {
uninspected.log(a);
} else {
Expand Down

0 comments on commit 3e5b050

Please sign in to comment.