mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 08:32:37 +08:00
Chore: remove unnessisary type assertion from GrafanaContext (#52979)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user