Skip to content

Commit 225df64

Browse files
a-klosCopilot
andauthored
Update services/frontend/libs/shared/utils/src/lib/marked.utils.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f3d5e22 commit 225df64

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services/frontend/libs/shared/utils/src/lib/marked.utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export const initializeMarkdown = () => {
3636

3737
const originalImage = anyRenderer['image']?.bind(renderer) as ((...args: any[]) => string) | undefined;
3838
anyRenderer['image'] = (...args: any[]): string => {
39-
let href = '' as string | undefined;
40-
let title = null as string | null;
41-
let text = '' as string | undefined;
39+
let href: string | undefined = '';
40+
let title: string | null = null;
41+
let text: string | undefined = '';
4242
// token form
4343
if (args.length === 1 && typeof args[0] === 'object') {
4444
const token = args[0] as { href?: string; title?: string | null; text?: string };

0 commit comments

Comments
 (0)