Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "if-err", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,4 +21,9 @@ # ifErr | ||
asyncFunc(function (err) { | ||
error.if(err, ''); | ||
error.if(err, 'bad things happened'); | ||
}); | ||
asyncFunc(function (err, data) { | ||
error.if(err, 'bad things happened'); | ||
error.ifNot(data, 'data wasn\'t returned'); | ||
}); | ||
``` | ||
@@ -25,0 +30,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
30507
33