fix: Remove try/catch statements without error argument (#6370)

This commit is contained in:
Tom Moor
2024-01-10 08:02:44 -08:00
committed by GitHub
parent 870c623601
commit 22c52f84c5
5 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ function YouTube({ matches, ...props }: Props) {
const url = new URL(props.attrs.href);
const searchParams = new URLSearchParams(url.search);
start = searchParams.get("t")?.replace(/s$/, "");
} catch {
} catch (_e) {
// noop
}