Skip to content

Commit 7965f99

Browse files
committed
fixes linting issues
1 parent d9d27b8 commit 7965f99

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

x-pack/plugins/apm/server/lib/settings/apm_indices/get_apm_indices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function getApmIndexSettings({
8787
>;
8888

8989
return apmIndices.map((configurationName) => ({
90-
configurationName: configurationName,
90+
configurationName,
9191
defaultValue: apmIndicesConfig[configurationName], // value defined in kibana[.dev].yml
9292
savedValue: apmIndicesSavedObject[configurationName], // value saved via Saved Objects service
9393
}));

x-pack/plugins/apm/server/plugin.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import { isEmpty, mapValues } from 'lodash';
1818
import { SavedObjectsClient } from '../../../../src/core/server';
1919
import { mappingFromFieldMap } from '../../rule_registry/common/mapping_from_field_map';
2020
import { Dataset } from '../../rule_registry/server';
21-
import { /*APMConfig,*/ APMConfig, APM_SERVER_FEATURE_ID } from '.';
22-
// import { getFullPathConfigs } from './index';
21+
import { APMConfig, APM_SERVER_FEATURE_ID } from '.';
2322
import { UI_SETTINGS } from '../../../../src/plugins/data/common';
2423
import { APM_FEATURE, registerFeaturesUsage } from './feature';
2524
import { registerApmAlerts } from './lib/alerts/register_apm_alerts';
@@ -73,30 +72,21 @@ export class APMPlugin
7372
) {
7473
this.logger = this.initContext.logger.get();
7574
const config$ = this.initContext.config.create<APMConfig>();
76-
// const mergedConfig$ = config$.pipe(
77-
// map((apmConfig) => getFullPathConfigs(apmConfig))
78-
// );
7975

8076
core.savedObjects.registerType(apmIndices);
8177
core.savedObjects.registerType(apmTelemetry);
8278
core.savedObjects.registerType(apmServerSettings);
8379

84-
// const currentConfig = getFullPathConfigs(
85-
// this.initContext.config.get<APMConfig>()
86-
// );
87-
// this.currentConfig = currentConfig;
8880
const currentConfig = this.initContext.config.get<APMConfig>();
8981
this.currentConfig = currentConfig;
9082

9183
if (
9284
plugins.taskManager &&
9385
plugins.usageCollection &&
9486
currentConfig.telemetryCollectionEnabled
95-
// currentConfig['xpack.apm.telemetryCollectionEnabled']
9687
) {
9788
createApmTelemetry({
9889
core,
99-
// config$: mergedConfig$,
10090
config$,
10191
usageCollector: plugins.usageCollection,
10292
taskManager: plugins.taskManager,

0 commit comments

Comments
 (0)