Skip to content

Commit e286911

Browse files
committed
removed redundant fallback
1 parent 705adf0 commit e286911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/components/url-preview/ClientPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function parseYoutubeLink(url: string): YoutubeLink | null {
166166
if (url.includes('youtu.be')) {
167167
const split = path.split('?');
168168
[videoId] = split;
169-
params = split[1]?.split('&') ?? undefined;
169+
params = split[1]?.split('&');
170170
} else {
171171
params = path.split('?')[1].split('&');
172172
videoId = params.find((s) => s.startsWith('v='), params)?.split('v=')[1];

0 commit comments

Comments
 (0)