refactor: remove unused hasIgnoredParts variables from context-window-limit-recovery
This commit is contained in:
parent
731a331fbc
commit
8dd3d07efd
@ -20,13 +20,10 @@ function messageHasContentFromSDK(message: SDKMessage): boolean {
|
|||||||
const parts = message.parts
|
const parts = message.parts
|
||||||
if (!parts || parts.length === 0) return false
|
if (!parts || parts.length === 0) return false
|
||||||
|
|
||||||
let hasIgnoredParts = false
|
|
||||||
|
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
const type = part.type
|
const type = part.type
|
||||||
if (!type) continue
|
if (!type) continue
|
||||||
if (IGNORE_TYPES.has(type)) {
|
if (IGNORE_TYPES.has(type)) {
|
||||||
hasIgnoredParts = true
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -32,13 +32,10 @@ function messageHasContentFromSDK(message: SDKMessage): boolean {
|
|||||||
const parts = message.parts
|
const parts = message.parts
|
||||||
if (!parts || parts.length === 0) return false
|
if (!parts || parts.length === 0) return false
|
||||||
|
|
||||||
let hasIgnoredParts = false
|
|
||||||
|
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
const type = part.type
|
const type = part.type
|
||||||
if (!type) continue
|
if (!type) continue
|
||||||
if (IGNORE_TYPES.has(type)) {
|
if (IGNORE_TYPES.has(type)) {
|
||||||
hasIgnoredParts = true
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user