mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: remove unnessisary type assertion from GrafanaContext (#52979)
This commit is contained in:
parent
ff1c294963
commit
b223c65a6c
@ -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;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user