diff --git a/kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java b/kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java index 8bf3ed93a..a8c2e672e 100644 --- a/kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java +++ b/kayenta-stackdriver/src/main/java/com/netflix/kayenta/stackdriver/metrics/StackdriverMetricsService.java @@ -399,12 +399,6 @@ public List queryMetrics( : stackdriverCanaryScope.getEnd(); // TODO(duftler): What if there are no data points? -<<<<<<< HEAD - List pointValues = - points.stream() - .map(point -> point.getValue().getDoubleValue()) - .collect(Collectors.toList()); -======= List pointValues; if (points.isEmpty()) { @@ -436,7 +430,6 @@ public List queryMetrics( pointValues = Collections.emptyList(); // Handle null valueType case as well } } ->>>>>>> 6684f9dd (fix(stackdriver): handle null timeSeries and empty points (#1047)) MetricSet.MetricSetBuilder metricSetBuilder = MetricSet.builder()