Skip to content

Commit 08ada72

Browse files
LekoBridgeAR
authored andcommitted
doc: Add example of null to assert.ifError
PR-URL: #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 143b235 commit 08ada72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/assert.md

Lines changed: 2 additions & 0 deletions
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)