From 60deb686f73c401668d8d2905eaa13c687f62c6c Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Wed, 27 Jan 2021 12:00:41 +0100 Subject: [PATCH] restore --- x-pack/plugins/lens/server/usage/collectors.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/lens/server/usage/collectors.ts b/x-pack/plugins/lens/server/usage/collectors.ts index 2ffa4b8dffc4a..71a699aadb865 100644 --- a/x-pack/plugins/lens/server/usage/collectors.ts +++ b/x-pack/plugins/lens/server/usage/collectors.ts @@ -75,10 +75,10 @@ async function getLatestTaskState(taskManager: TaskManagerStartContract) { } catch (err) { const errMessage = err && err.message ? err.message : err.toString(); /* - The usage service WILL to try to fetch from this collector before the task manager has been initialized, because the - task manager has to wait for all plugins to initialize first. It's fine to ignore it as next time around it will be - initialized (or it will throw a different type of error) - */ + The usage service WILL to try to fetch from this collector before the task manager has been initialized, because the + task manager has to wait for all plugins to initialize first. It's fine to ignore it as next time around it will be + initialized (or it will throw a different type of error) + */ if (!errMessage.includes('NotInitialized')) { throw err; }