Skip to content

Commit

Permalink
tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Apr 4, 2020
1 parent b6ec632 commit d8b0be8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions x-pack/plugins/ml/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ export interface MlSetupDependencies {

export class MlPlugin implements Plugin<MlPluginSetup, MlPluginStart> {
setup(core: CoreSetup<MlStartDependencies, MlPluginStart>, pluginsSetup: MlSetupDependencies) {
const home = pluginsSetup.home;
const licensing = pluginsSetup.licensing;

core.application.register({
id: PLUGIN_ID,
title: i18n.translate('xpack.ml.plugin.title', {
Expand All @@ -58,8 +55,8 @@ export class MlPlugin implements Plugin<MlPluginSetup, MlPluginStart> {
management: pluginsSetup.management,
usageCollection: pluginsSetup.usageCollection,
licenseManagement: pluginsSetup.licenseManagement,
licensing,
home,
licensing: pluginsSetup.licensing,
home: pluginsSetup.home,
},
{
element: params.element,
Expand All @@ -71,7 +68,7 @@ export class MlPlugin implements Plugin<MlPluginSetup, MlPluginStart> {
},
});

registerFeature(home);
registerFeature(pluginsSetup.home);

initManagementSection(pluginsSetup, core);
return {};
Expand Down

0 comments on commit d8b0be8

Please sign in to comment.