diff options
author | 2020-06-26 04:30:43 -0400 | |
---|---|---|
committer | 2020-06-26 10:30:43 +0200 | |
commit | c6c727ca571c91d1ff426e218ccadb075cdb2af6 (patch) | |
tree | e1855bb6c6d37f0b28b97be73192316fec2067e5 /source/features/bypass-checks.tsx | |
parent | 15da229b3a29483f076782361ac429854f18e18b (diff) | |
download | refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.gz refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.tar.zst refined-github-c6c727ca571c91d1ff426e218ccadb075cdb2af6.zip |
Lint and avoid errors (#3256)
Diffstat (limited to 'source/features/bypass-checks.tsx')
-rw-r--r-- | source/features/bypass-checks.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/features/bypass-checks.tsx b/source/features/bypass-checks.tsx index 03303573..b5357835 100644 --- a/source/features/bypass-checks.tsx +++ b/source/features/bypass-checks.tsx @@ -9,7 +9,10 @@ async function bypass(detailsLink: HTMLAnchorElement): Promise<void> { detailsLink.href, '[data-hydro-click*="check_suite.external_click"]' ); - detailsLink.href = directLink!.href; + + if (directLink) { + detailsLink.href = directLink.href; + } } async function init(): Promise<void> { |