Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Clear up the ruins #788

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ module.exports = exports = function (proto) {
return cb(null, 0 <= tolerance, 0, stdout);
}
else if (code === 1) {
err = null;
stdout = stderr;
} else {
return cb(stderr);
Expand All @@ -103,8 +102,7 @@ module.exports = exports = function (proto) {
var regex = isImageMagick ? /\((\d+\.?[\d\-\+e]*)\)/m : /Total: (\d+\.?\d*)/m;
var match = regex.exec(stdout);
if (!match) {
err = new Error('Unable to parse output.\nGot ' + stdout);
return cb(err);
return cb(new Error('Unable to parse output.\nGot ' + stdout));
}

var equality = parseFloat(match[1]);
Expand Down