Skip to content

Commit 5ac5a7a

Browse files
LekoMayaLekova
authored andcommittedMay 8, 2018
doc: Add example of null to assert.ifError
PR-URL: nodejs#18236 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 68bc3b2 commit 5ac5a7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎doc/api/assert.md

+2
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ argument in callbacks.
442442
```js
443443
const assert = require('assert').strict;
444444

445+
assert.ifError(null);
446+
// OK
445447
assert.ifError(0);
446448
// OK
447449
assert.ifError(1);

0 commit comments

Comments
 (0)
Please sign in to comment.