Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
SuYao 2025-12-07 21:13:21 +08:00 committed by GitHub
parent f337ad3a4d
commit f4f8e844ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2069,14 +2069,8 @@ class FileStorage {
return { status: 'skipped' as const, reason: 'extension not allowed' }
}
} else {
// Fallback to default filter if no options provided (backward compatibility)
const lowerPath = entryData.fullPath.toLowerCase()
const isMarkdown = lowerPath.endsWith('.md') || lowerPath.endsWith('.markdown')
const isImage = imageExts.some((ext) => lowerPath.endsWith(ext))
if (!isMarkdown && !isImage) {
return { status: 'skipped' as const, reason: 'not markdown or image' }
}
// Fallback: allow all files if no allowedExtensions specified (consistent with line 1679)
// No filtering; all files are allowed
}
}