Skip to content

Commit 6a34f84

Browse files
committed
feedback
1 parent 1815d39 commit 6a34f84

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

app/src/features/detail/components/PackageSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const PackageSidebar = ({ data, loading, error }: PackageSidebarProps) => {
217217
title={docsLinkLabel || docsRelativeUrl}
218218
>
219219
<DescriptionIcon fontSize="small" style={{ marginRight: 6 }} />
220-
{docsLinkLabel || docsRelativeUrl || `Docs for ${data.name}@${data.version}`}
220+
{docsLinkLabel || `Docs for ${data.name}@${data.version}`}
221221
</Link>
222222
) : (
223223
<Typography variant="body2" color="text.secondary">

app/src/features/docs/lib/utils.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ export function convertByteCodeContent(content: string): string {
3939
.map(num => parseInt(num.trim(), 10))
4040
.filter(num => Number.isFinite(num) && num >= 0 && num <= 255);
4141

42-
const byteArray = new Uint8Array(numbers.length);
43-
for (let i = 0; i < numbers.length; i += 1) {
44-
byteArray[i] = numbers[i];
45-
}
46-
47-
return new TextDecoder().decode(byteArray);
42+
return new TextDecoder().decode(new Uint8Array(numbers));
4843
}
4944
return content;
5045
}

0 commit comments

Comments
 (0)