From f11281ee40bae04ff9f2fff1750905baa6458287 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 916d9bed09c6a..37cb9ee48872e 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 c2b3ab8fa1658..8eab6cd384765 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: {