cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-07-28 01:28:50 +03:00
parent 3c9b06b5df
commit 921b9dce65

View File

@ -1698,14 +1698,13 @@ module.BaseParser = {
var that = this var that = this
// XXX should we handle strings as input??? // XXX should we handle strings as input???
ast = ast ast = ast
?? await this.expand(page, null, state) ?? this.expand(page, null, state)
ast = typeof(ast) == 'string' ? ast = typeof(ast) == 'string' ?
await this.expand(page, ast, state) this.expand(page, ast, state)
: ast : ast
//return [...ast] //return [...ast]
return await ast return ast
.iter()
// post handlers... // post handlers...
.map(function(section){ .map(function(section){
return typeof(section) == 'function' ? return typeof(section) == 'function' ?