Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 46c43a0

Browse files
committed
Filter out empty methods.
1 parent 4ad87a9 commit 46c43a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const parser = (content, filename) =>
2222
'type': method.ctx.type,
2323
'name': formatStringForName(method.ctx.string),
2424
'description': method.description.full,
25+
'empty': !method.description.full && !method.tags.length,
2526
'params': method.tags.filter(tag =>
2627
tag.type === 'param' && !tag.name.match(/\./))
2728
.map(tag => {
@@ -61,6 +62,7 @@ const parser = (content, filename) =>
6162
'description': tag.description
6263
}))
6364
}
64-
}));
65+
}))
66+
.filter(method => !method.empty);
6567

6668
module.exports = parser;

0 commit comments

Comments
 (0)