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
1 changed files with 2 additions and 5 deletions

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 {
if (!err) return mount()
console.error(err)
}
})
})
}