github-advanced-security[bot] commented on code in PR #16614:
URL: https://github.com/apache/druid/pull/16614#discussion_r1641898566


##########
server/src/main/java/org/apache/druid/segment/realtime/appenderator/BaseAppenderatorDriver.java:
##########
@@ -558,15 +559,7 @@
 
     return Futures.transform(
         dropFuture,
-        (Function<Object, SegmentsAndCommitMetadata>) x -> {
-          final Object metadata = 
segmentsAndCommitMetadata.getCommitMetadata();
-          return new SegmentsAndCommitMetadata(
-              segmentsAndCommitMetadata.getSegments(),
-              metadata == null ? null : ((AppenderatorDriverMetadata) 
metadata).getCallerMetadata(),
-              segmentsAndCommitMetadata.getSegmentSchemaMapping(),
-              segmentsAndCommitMetadata.getUpgradedSegments()
-          );
-        },
+        x -> segmentsAndCommitMetadata.asAppenderatorMetadata(),

Review Comment:
   ## Useless parameter
   
   The parameter 'x' is never used.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/7460)



-- 
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: commits-unsubscr...@druid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to