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:
parent
1c623ea5ec
commit
50fb58b110
@ -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))
|
||||
)
|
||||
}, [])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user