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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Aug 17, 2018

Unverified

The email in this signature doesn’t match the committer email.
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
@@ -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;

0 comments on commit e1c28b6

Please sign in to comment.