mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
tools: fix logic nit in tools/doc/generate.js
PR-URL: https://github.com/nodejs/node/pull/19475 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
5960cde4eb
commit
0414a8c7ed
|
|
@ -65,8 +65,8 @@ function next(er, input) {
|
|||
switch (format) {
|
||||
case 'json':
|
||||
require('./json.js')(input, filename, (er, obj) => {
|
||||
console.log(JSON.stringify(obj, null, 2));
|
||||
if (er) throw er;
|
||||
console.log(JSON.stringify(obj, null, 2));
|
||||
});
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user