From a4b95c88d946ab222e19e5a847028f9dba11c2ff Mon Sep 17 00:00:00 2001 From: Sebastian Alff Date: Tue, 24 May 2022 21:23:25 +0200 Subject: [PATCH] fix parentheses, lint --- hot/dev-server.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hot/dev-server.js b/hot/dev-server.js index b74748de5..a2f760a7c 100644 --- a/hot/dev-server.js +++ b/hot/dev-server.js @@ -16,9 +16,10 @@ if (module.hot) { if (!updatedModules) { log( "warning", - "[HMR] Cannot find update. " + typeof window !== "undefined" - ? "Need to do a full reload!" - : "Please reload manually!" + "[HMR] Cannot find update. " + + (typeof window !== "undefined" + ? "Need to do a full reload!" + : "Please reload manually!") ); log( "warning", @@ -45,9 +46,10 @@ if (module.hot) { if (["abort", "fail"].indexOf(status) >= 0) { log( "warning", - "[HMR] Cannot apply update. " + typeof window !== "undefined" - ? "Need to do a full reload!" - : "Please reload manually!" + "[HMR] Cannot apply update. " + + (typeof window !== "undefined" + ? "Need to do a full reload!" + : "Please reload manually!") ); log("warning", "[HMR] " + log.formatError(err)); if (typeof window !== "undefined") {