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


##########
server/src/main/java/org/apache/druid/query/lookup/LookupListeningAnnouncerConfig.java:
##########
@@ -50,7 +55,7 @@
         !(lookupTierIsDatasource && null != lookupTier),
         "Cannot specify both `lookupTier` and `lookupTierIsDatasource`"
     );
-    final String lookupTier = lookupTierIsDatasource ? 
dataSourceTaskIdHolder.getDataSource() : this.lookupTier;
+    final String lookupTier = lookupTierIsDatasource ? 
taskPropsHolder.getDataSource() : this.lookupTier;

Review Comment:
   ## Possible confusion of local and field
   
   Confusing name: method [getLookupTier](1) also refers to field 
[lookupTier](2) (without qualifying it with 'this').
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/10549)



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to