Skip to content

Commit ebb2538

Browse files
Copilotyanglbme
andcommitted
refactor: explicitly type error as unknown in catch block
Co-authored-by: yanglbme <21008209+yanglbme@users.noreply.github.com>
1 parent 755a642 commit ebb2538

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ function mergeCss(html: string): string {
261261
resolveCSSVariables: false,
262262
})
263263
}
264-
catch (error) {
264+
catch (error: unknown) {
265265
console.error(`Failed to inline CSS with juice:`, error)
266266
// 如果 juice 处理失败,返回原始 HTML
267267
return html

0 commit comments

Comments
 (0)