Potential fix for pull request finding 'Useless assignment to local variable'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
Simos Mikelatos
2026-06-26 16:14:44 +02:00
committed by GitHub
parent a0899a252e
commit 46ba8e56b4

View File

@@ -194,13 +194,6 @@ export default function ChatComposer({
const isRecording = voiceState === 'recording'; const isRecording = voiceState === 'recording';
const isTranscribing = voiceState === 'transcribing'; const isTranscribing = voiceState === 'transcribing';
const textareaRect = textareaRef.current?.getBoundingClientRect();
const commandMenuPosition = {
top: textareaRect ? Math.max(16, textareaRect.top - 316) : 0,
left: textareaRect ? textareaRect.left : 16,
bottom: textareaRect ? window.innerHeight - textareaRect.top + 8 : 90,
};
// Detect if the AskUserQuestion interactive panel is active // Detect if the AskUserQuestion interactive panel is active
const hasQuestionPanel = pendingPermissionRequests.some( const hasQuestionPanel = pendingPermissionRequests.some(
(r) => r.toolName === 'AskUserQuestion' (r) => r.toolName === 'AskUserQuestion'