Skip to content

Commit

Permalink
style(lint): fixes linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Feb 7, 2019
1 parent eda99b5 commit 50a0db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/patch/anchor/catch-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export function catchNavigation(): void {
const hrefAttributeValue = e.target.getAttribute("href");

// Only work with HTMLAnchorElements that navigates to a specific ID
if (hrefAttributeValue == null || !hrefAttributeValue.startsWith("#"))
if (hrefAttributeValue == null || !hrefAttributeValue.startsWith("#")) {
return;
}

// Find the nearest root, whether it be a ShadowRoot or the document itself
const root = findNearestRoot(e.target);
Expand Down

0 comments on commit 50a0db4

Please sign in to comment.