mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-21 15:55:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user