Minor typo on switch =json

This commit is contained in:
dig 2020-08-16 12:31:55 +02:00
parent c72cf1339a
commit 71fb19c102
1 changed files with 2 additions and 2 deletions

View File

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