We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d506d commit 1bb7852Copy full SHA for 1bb7852
src/utilities/content-utils.js
@@ -51,9 +51,7 @@ export const FindInContent = (tree, test) => {
51
* @return {array} - Immediate children of the given `tree` that are directories
52
*/
53
export const ExtractSections = tree => {
54
- return tree.children.filter(item => (
55
- item.type === 'directory'
56
- ));
+ return tree.children.filter(item => item.type === 'directory');
57
};
58
59
/**
@@ -63,7 +61,5 @@ export const ExtractSections = tree => {
63
61
* @return {array} - All markdown descendants of the given `tree`
64
62
65
export const ExtractPages = tree => {
66
- return FlattenContent(tree).filter(item => {
67
- return item.extension === '.md';
68
- });
+ return FlattenContent(tree).filter(item => item.extension === '.md');
69
0 commit comments