Skip to content

Commit

Permalink
tools: fix logic nit in tools/doc/generate.js
Browse files Browse the repository at this point in the history
PR-URL: #19475
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Aug 17, 2018
1 parent ab559b8 commit e1c28b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e1c28b6

Please sign in to comment.