Skip to content

Commit 1bb7852

Browse files
committed
chore(rebuild): address minor feedback
1 parent 54d506d commit 1bb7852

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/utilities/content-utils.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ export const FindInContent = (tree, test) => {
5151
* @return {array} - Immediate children of the given `tree` that are directories
5252
*/
5353
export const ExtractSections = tree => {
54-
return tree.children.filter(item => (
55-
item.type === 'directory'
56-
));
54+
return tree.children.filter(item => item.type === 'directory');
5755
};
5856

5957
/**
@@ -63,7 +61,5 @@ export const ExtractSections = tree => {
6361
* @return {array} - All markdown descendants of the given `tree`
6462
*/
6563
export const ExtractPages = tree => {
66-
return FlattenContent(tree).filter(item => {
67-
return item.extension === '.md';
68-
});
64+
return FlattenContent(tree).filter(item => item.extension === '.md');
6965
};

0 commit comments

Comments
 (0)