Skip to content

Commit

Permalink
[Reporting] remove unused reference to path.data config (elastic#102267)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Jun 16, 2021
1 parent 243b167 commit cf65748
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x-pack/plugins/reporting/server/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
*/

import { get } from 'lodash';
import { Observable } from 'rxjs';
import { first, map } from 'rxjs/operators';
import { first } from 'rxjs/operators';
import { CoreSetup, PluginInitializerContext } from 'src/core/server';
import { LevelLogger } from '../lib';
import { createConfig$ } from './create_config';
Expand Down Expand Up @@ -43,7 +42,6 @@ interface Config<BaseType> {
}

interface KbnServerConfigType {
path: { data: Observable<string> };
server: {
basePath: string;
host: string;
Expand All @@ -68,9 +66,6 @@ export const buildConfig = async (
const serverInfo = http.getServerInfo();

const kbnConfig = {
path: {
data: initContext.config.legacy.globalConfig$.pipe(map((c) => c.path.data)),
},
server: {
basePath: core.http.basePath.serverBasePath,
host: serverInfo.hostname,
Expand Down

0 comments on commit cf65748

Please sign in to comment.