refactor: remove unused hasIgnoredParts variables from context-window-limit-recovery

This commit is contained in:
YeonGyu-Kim
2026-02-16 22:10:44 +09:00
parent 731a331fbc
commit 8dd3d07efd
2 changed files with 0 additions and 6 deletions

View File

@@ -20,13 +20,10 @@ function messageHasContentFromSDK(message: SDKMessage): boolean {
const parts = message.parts
if (!parts || parts.length === 0) return false
let hasIgnoredParts = false
for (const part of parts) {
const type = part.type
if (!type) continue
if (IGNORE_TYPES.has(type)) {
hasIgnoredParts = true
continue
}

View File

@@ -32,13 +32,10 @@ function messageHasContentFromSDK(message: SDKMessage): boolean {
const parts = message.parts
if (!parts || parts.length === 0) return false
let hasIgnoredParts = false
for (const part of parts) {
const type = part.type
if (!type) continue
if (IGNORE_TYPES.has(type)) {
hasIgnoredParts = true
continue
}