misc: Refacto to use less chars

This commit is contained in:
Sébastien Chopin 2018-01-11 12:56:37 +01:00
parent 421070d385
commit 5dd7591e3f

View File

@ -587,11 +587,8 @@ async function mountApp(__app) {
// Push the path and then mount app
router.push(path, () => mount(), (err) => {
if (typeof err === 'undefined') {
mount()
} else {
console.error(err)
}
if (!err) return mount()
console.error(err)
})
})
}