Chore: remove unnessisary type assertion from GrafanaContext (#52979)

This commit is contained in:
Josh Hunt 2022-07-29 11:48:52 +01:00 committed by GitHub
parent ff1c294963
commit b223c65a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,5 @@ export function useGrafana(): GrafanaContextType {
if (!context) { if (!context) {
throw new Error('No GrafanaContext found'); throw new Error('No GrafanaContext found');
} }
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions return context;
return context as GrafanaContextType;
} }