Skip to content

Commit

Permalink
great use of our time
Browse files Browse the repository at this point in the history
  • Loading branch information
oatkiller committed Dec 5, 2019
1 parent 9c06b62 commit 4c6dd36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions x-pack/plugins/endpoint/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/endpoint/server/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 4c6dd36

Please sign in to comment.