Bug always log 'undefined'

This commit is contained in:
devingfx 2021-01-17 23:52:50 +01:00
parent 52620afc2c
commit b9d1206dce
1 changed files with 1 additions and 1 deletions

View File

@ -43,6 +43,6 @@ const render = obj=> switches.json
//console.log( 'type' , typeof returned, returned instanceof Promise )
returned instanceof Promise
? returned.then( render, e=>console.error(e) )
: console.log( render(returned) )
: render( returned )
module.exports = mod