bito-code-review[bot] commented on code in PR #41511:
URL: https://github.com/apache/superset/pull/41511#discussion_r3488841564
##########
superset-frontend/plugins/plugin-chart-cartodiagram/src/components/OlChartMap.tsx:
##########
@@ -24,7 +24,7 @@ import { View } from 'ol';
import BaseEvent from 'ol/events/Event';
import { unByKey } from 'ol/Observable';
import { toLonLat } from 'ol/proj';
-import { debounce } from 'lodash';
+import { debounce } from 'lodash-es';
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Dead import statement</b></div>
<div id="fix">
This import is dead code. The file defines a local `debounce` function
(lines 230-236) that shadows the imported one, which is then used at lines 238
and 305. The imported `debounce` is never consumed.
</div>
</div>
<small><i>Code Review Run #0e3b94</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
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]