From 696043addaf40897c3ea6f493cceecca23f5212d Mon Sep 17 00:00:00 2001 From: Sean Kenny Date: Sat, 19 Nov 2016 22:33:04 +0000 Subject: [PATCH] Use backticks over concatenated strings As per review comments --- node_package/src/StoreRegistry.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/node_package/src/StoreRegistry.js b/node_package/src/StoreRegistry.js index 31af65442..791b60c10 100644 --- a/node_package/src/StoreRegistry.js +++ b/node_package/src/StoreRegistry.js @@ -39,11 +39,12 @@ export default { const storeKeys = Array.from(hydratedStores.keys()).join(', '); if (storeKeys.length === 0) { - const msg = `There are no stores hydrated and you are requesting the store ${name}.\n` + - 'This can happen if you are server rendering and either: \n' + - "1) You do not call redux_store near the top of your controller action's " + - 'view (not the layout) and before any call to react_component \n' + - '2) You do not render redux_store_hydration_data anywhere on your page'; + const msg = + `There are no stores hydrated and you are requesting the store ${name}. + This can happen if you are server rendering and either: + 1) You do not call redux_store near the top of your controller action's + view (not the layout) and before any call to react_component + 2) You do not render redux_store_hydration_data anywhere on your page`; throw new Error(msg); }