From 50a0db46087cc08d697d2b169b845e39beb01758 Mon Sep 17 00:00:00 2001 From: wessberg Date: Thu, 7 Feb 2019 20:56:19 +0100 Subject: [PATCH] style(lint): fixes linting issue --- src/patch/anchor/catch-navigation.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/patch/anchor/catch-navigation.ts b/src/patch/anchor/catch-navigation.ts index 8f870d9..f2e9cf6 100644 --- a/src/patch/anchor/catch-navigation.ts +++ b/src/patch/anchor/catch-navigation.ts @@ -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);