Skip to content

Commit

Permalink
fix(NA): test run with lodash has
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Apr 20, 2020
1 parent ac6c582 commit 2764554
Showing 1 changed file with 3 additions and 6 deletions.
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 { set } from 'lodash';
import { has, set } from 'lodash';
import {
APICaller,
ElasticsearchServiceStart,
Expand Down Expand Up @@ -85,11 +85,8 @@ export async function fetchUpgradeAssistantMetrics(
}

const telemetryObj = defaultTelemetrySavedObject;
Object.keys(defaultTelemetrySavedObject).forEach((key: string) => {
if (
!upgradeAssistantTelemetrySavedObjectAttrs.hasOwnProperty(key) ||
!upgradeAssistantTelemetrySavedObjectAttrs[key]
) {
Object.keys(upgradeAssistantTelemetrySavedObjectAttrs).forEach((key: string) => {
if (!has(defaultTelemetrySavedObject, key)) {
return;
}

Expand Down

0 comments on commit 2764554

Please sign in to comment.