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

pull/52986/head
Josh Hunt 3 years ago committed by GitHub
parent ff1c294963
commit b223c65a6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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;
}

Loading…
Cancel
Save