Chore: remove unnessisary type assertion from GrafanaContext (#52979)
This commit is contained in:
1 parent
ff1c294963
commit
b223c65a6c
1 file changed
+1
-2
@@ -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