Comparing version 0.2.0 to 0.3.0
@@ -26,3 +26,3 @@ /** | ||
if (typeof func === 'function') { | ||
func(check); | ||
func(err); | ||
} else { | ||
@@ -29,0 +29,0 @@ // throw error |
{ | ||
"name": "if-err", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -47,3 +47,3 @@ 'use strict'; | ||
error.if(true, function (check) { | ||
assert.strictEqual(true, check); | ||
assert(check instanceof Error); | ||
}); | ||
@@ -50,0 +50,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33911