From a807767882623664910bbc7f0b2ff2e4046cdf85 Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Wed, 23 Sep 2020 19:36:02 -0500 Subject: [PATCH] Remove newlines --- src/core/server/environment/write_pid_file.ts | 1 - src/plugins/usage_collection/server/routes/stats.ts | 1 - .../plugins/ml/server/models/annotation_service/annotation.ts | 2 -- .../models/bucket_span_estimator/bucket_span_estimator.js | 4 ---- .../ml/server/models/data_visualizer/data_visualizer.ts | 4 ---- .../models/results_service/build_anomaly_table_items.js | 1 - .../ml/server/models/results_service/results_service.ts | 2 -- .../plugins/security_solution/server/utils/runtime_types.ts | 1 - 8 files changed, 16 deletions(-) diff --git a/src/core/server/environment/write_pid_file.ts b/src/core/server/environment/write_pid_file.ts index 6f5fe0230e319..6ee20af02d7b0 100644 --- a/src/core/server/environment/write_pid_file.ts +++ b/src/core/server/environment/write_pid_file.ts @@ -18,7 +18,6 @@ */ import { unlinkSync as unlink } from 'fs'; - import once from 'lodash/once'; import { Logger } from '../logging'; import { writeFile, exists } from './fs'; diff --git a/src/plugins/usage_collection/server/routes/stats.ts b/src/plugins/usage_collection/server/routes/stats.ts index e13339496c865..7c64c9f180319 100644 --- a/src/plugins/usage_collection/server/routes/stats.ts +++ b/src/plugins/usage_collection/server/routes/stats.ts @@ -19,7 +19,6 @@ import { schema } from '@kbn/config-schema'; import { i18n } from '@kbn/i18n'; - import defaultsDeep from 'lodash/defaultsDeep'; import { Observable } from 'rxjs'; import { first } from 'rxjs/operators'; diff --git a/x-pack/plugins/ml/server/models/annotation_service/annotation.ts b/x-pack/plugins/ml/server/models/annotation_service/annotation.ts index 594edc532a16a..24f1d6951c940 100644 --- a/x-pack/plugins/ml/server/models/annotation_service/annotation.ts +++ b/x-pack/plugins/ml/server/models/annotation_service/annotation.ts @@ -5,9 +5,7 @@ */ import Boom from 'boom'; - import each from 'lodash/each'; - import get from 'lodash/get'; import { IScopedClusterClient } from 'kibana/server'; diff --git a/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js b/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js index 4b737490afada..1d59db8fa564f 100644 --- a/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js +++ b/x-pack/plugins/ml/server/models/bucket_span_estimator/bucket_span_estimator.js @@ -5,13 +5,9 @@ */ import cloneDeep from 'lodash/cloneDeep'; - import each from 'lodash/each'; - import remove from 'lodash/remove'; - import sortBy from 'lodash/sortBy'; - import get from 'lodash/get'; import { mlLog } from '../../client/log'; diff --git a/x-pack/plugins/ml/server/models/data_visualizer/data_visualizer.ts b/x-pack/plugins/ml/server/models/data_visualizer/data_visualizer.ts index 774c6459a2a6e..95c4e79150059 100644 --- a/x-pack/plugins/ml/server/models/data_visualizer/data_visualizer.ts +++ b/x-pack/plugins/ml/server/models/data_visualizer/data_visualizer.ts @@ -5,13 +5,9 @@ */ import { IScopedClusterClient } from 'kibana/server'; - import get from 'lodash/get'; - import each from 'lodash/each'; - import last from 'lodash/last'; - import find from 'lodash/find'; import { KBN_FIELD_TYPES } from '../../../../../../src/plugins/data/server'; import { ML_JOB_FIELD_TYPES } from '../../../common/constants/field_types'; diff --git a/x-pack/plugins/ml/server/models/results_service/build_anomaly_table_items.js b/x-pack/plugins/ml/server/models/results_service/build_anomaly_table_items.js index 86093b802b60f..588e0e10a8d63 100644 --- a/x-pack/plugins/ml/server/models/results_service/build_anomaly_table_items.js +++ b/x-pack/plugins/ml/server/models/results_service/build_anomaly_table_items.js @@ -5,7 +5,6 @@ */ import sortBy from 'lodash/sortBy'; - import each from 'lodash/each'; import moment from 'moment-timezone'; diff --git a/x-pack/plugins/ml/server/models/results_service/results_service.ts b/x-pack/plugins/ml/server/models/results_service/results_service.ts index 5ae9f0d23c30e..190b5d99309d7 100644 --- a/x-pack/plugins/ml/server/models/results_service/results_service.ts +++ b/x-pack/plugins/ml/server/models/results_service/results_service.ts @@ -5,9 +5,7 @@ */ import sortBy from 'lodash/sortBy'; - import slice from 'lodash/slice'; - import get from 'lodash/get'; import moment from 'moment'; import { SearchResponse } from 'elasticsearch'; diff --git a/x-pack/plugins/security_solution/server/utils/runtime_types.ts b/x-pack/plugins/security_solution/server/utils/runtime_types.ts index 8a1f6360b0190..7177cc5765f8a 100644 --- a/x-pack/plugins/security_solution/server/utils/runtime_types.ts +++ b/x-pack/plugins/security_solution/server/utils/runtime_types.ts @@ -9,7 +9,6 @@ import { identity } from 'fp-ts/lib/function'; import { pipe } from 'fp-ts/lib/pipeable'; import * as rt from 'io-ts'; import { failure } from 'io-ts/lib/PathReporter'; - import get from 'lodash/get'; type ErrorFactory = (message: string) => Error;