Skip to content

Commit

Permalink
remove more errant ts-expect-error directives
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Dec 22, 2022
1 parent 3dee99f commit ae986f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ describe('UserActionMarkdown ', () => {
});

return (
// @ts-expect-error
<TestProviders {...testProviderProps}>
<Form form={form}>{children}</Form>
</TestProviders>
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/infra/server/utils/request_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export async function assertHasInfraMlPlugins<
assertHasInfraPlugins(context);

const infraContext = await context.infra;
// @ts-expect-error
if (infraContext?.mlAnomalyDetectors == null || infraContext?.mlSystem == null) {
throw new NoMlPluginError('Failed to access ML plugin.');
}
Expand Down

0 comments on commit ae986f9

Please sign in to comment.