From b223c65a6c7cdc196c58657c7d22e855c7892f0a Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Fri, 29 Jul 2022 11:48:52 +0100 Subject: [PATCH] Chore: remove unnessisary type assertion from GrafanaContext (#52979) --- public/app/core/context/GrafanaContext.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/core/context/GrafanaContext.ts b/public/app/core/context/GrafanaContext.ts index 6540814c2d2..b9596eddfc9 100644 --- a/public/app/core/context/GrafanaContext.ts +++ b/public/app/core/context/GrafanaContext.ts @@ -20,6 +20,5 @@ export function useGrafana(): GrafanaContextType { if (!context) { throw new Error('No GrafanaContext found'); } - // eslint-disable-next-line @typescript-eslint/consistent-type-assertions - return context as GrafanaContextType; + return context; }