style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -314,7 +314,10 @@ export async function getWithPermittedRedirects(
error.response &&
[301, 302, 307, 308].includes(error.response.status)
) {
const redirectLocation = getResponseHeader(error.response.headers, 'location')
const redirectLocation = getResponseHeader(
error.response.headers,
'location',
)
if (!redirectLocation) {
throw new Error('Redirect missing Location header')
}
@@ -551,7 +554,11 @@ export async function applyPromptToMarkdown(
const { content } = assistantMessage.message!
if (content!.length > 0) {
const contentBlock = content![0]
if (contentBlock && typeof contentBlock === 'object' && 'text' in contentBlock) {
if (
contentBlock &&
typeof contentBlock === 'object' &&
'text' in contentBlock
) {
return (contentBlock as { text: string }).text
}
}