gyfora commented on code in PR #502:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/502#discussion_r1065839944


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/autoscaler/ScalingMetricCollector.java:
##########
@@ -387,19 +389,18 @@ protected Map<String, FlinkMetric> 
getFilteredVertexMetricNames(
         }
 
         requiredMetrics.forEach(
-                flinkMetric -> {
-                    filteredMetrics.put(
-                            flinkMetric
-                                    .findAny(allMetricNames)
-                                    .orElseThrow(
-                                            () ->
-                                                    new RuntimeException(
-                                                            "Could not find 
required metric "
-                                                                    + 
flinkMetric.name()
-                                                                    + " for "
-                                                                    + 
jobVertexID)),
-                            flinkMetric);
-                });
+                flinkMetric ->
+                        filteredMetrics.put(
+                                flinkMetric
+                                        .findAny(allMetricNames)
+                                        .orElseThrow(
+                                                () ->
+                                                        new RuntimeException(
+                                                                "Could not 
find required metric "
+                                                                        + 
flinkMetric.name()
+                                                                        + " 
for "
+                                                                        + 
jobVertexID)),
+                                flinkMetric));

Review Comment:
   yes, I removed some unnecessary curly braces



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to