From 5dd7591e3fe45ff60941f1ea183c66505b22cdd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 11 Jan 2018 12:56:37 +0100 Subject: [PATCH] misc: Refacto to use less chars --- lib/app/client.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/app/client.js b/lib/app/client.js index a8dd544b09..6ac5cba5ae 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -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) }) }) }