1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 05:07:11 +03:00

simplify h/t @mislav

This commit is contained in:
Shawn Allen 2018-03-27 10:11:40 -07:00
parent 1c623ea5ec
commit 50fb58b110

View File

@ -59,9 +59,7 @@ export default req => {
select(ast, 'code[lang^=html]')
.map(parseBlockAttrs)
.filter(({block}) => block.story !== "false")
.map(node => {
return nodeToStory(node, path)
})
.map(node => nodeToStory(node, path))
)
}, [])
}