Skip to content

Commit b933510

Browse files
committed
fix not declaring tolerance in output conditinal
1 parent 529ef76 commit b933510

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ class ResembleHelper extends Helper {
4141
});
4242
}
4343

44-
if (options.tolerance !== undefined && this.config.consoleOutput)
44+
if (options.tolerance !== undefined)
4545
{
46-
console.log("Tolerance Level Provided " + options.tolerance);
46+
if(this.config.consoleOutput){
47+
console.log("Tolerance Level Provided " + options.tolerance);
48+
}
4749
var tolerance = options.tolerance;
4850
}
4951
resemble.compare(image1, image2, options, (err, data) => {

0 commit comments

Comments
 (0)