From 4c6dd36257c6eaccddaa2e3051958c19e1cad4bc Mon Sep 17 00:00:00 2001 From: oatkiller Date: Tue, 3 Dec 2019 09:14:36 -0500 Subject: [PATCH] great use of our time --- x-pack/plugins/endpoint/public/plugin.ts | 5 ++--- x-pack/plugins/endpoint/server/routes/index.ts | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/endpoint/public/plugin.ts b/x-pack/plugins/endpoint/public/plugin.ts index 916d9bed09c6a46..37cb9ee48872e6b 100644 --- a/x-pack/plugins/endpoint/public/plugin.ts +++ b/x-pack/plugins/endpoint/public/plugin.ts @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import { Plugin } from 'kibana/public'; +import { Plugin, CoreStart } from 'kibana/public'; import { IEmbeddableStart } from 'src/plugins/embeddable/public'; import { ResolverEmbeddableFactory } from './embeddables/resolver'; @@ -26,8 +26,7 @@ export class EndpointPlugin > { public setup() {} - public start(...args: [unknown, EndpointPluginStartDependencies]) { - const [, plugins] = args; + public start(_core: CoreStart, plugins: EndpointPluginStartDependencies) { const resolverEmbeddableFactory = new ResolverEmbeddableFactory(); plugins.embeddable.registerEmbeddableFactory( resolverEmbeddableFactory.type, diff --git a/x-pack/plugins/endpoint/server/routes/index.ts b/x-pack/plugins/endpoint/server/routes/index.ts index c2b3ab8fa1658e1..8eab6cd384765d0 100644 --- a/x-pack/plugins/endpoint/server/routes/index.ts +++ b/x-pack/plugins/endpoint/server/routes/index.ts @@ -15,8 +15,7 @@ export function addRoutes(router: IRouter) { tags: ['access:resolver'], }, }, - async function greetingIndex(...passedArgs) { - const [, , response] = passedArgs; + async function greetingIndex(_context, _request, response) { return response.ok({ body: { hello: 'world' }, headers: {