From 017f61926d1981af26e1fab429ab7b6200375605 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Sun, 10 Apr 2022 17:25:12 +0800 Subject: [PATCH] reduce lines --- studio/components/interfaces/App/RouteValidationWrapper.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/studio/components/interfaces/App/RouteValidationWrapper.tsx b/studio/components/interfaces/App/RouteValidationWrapper.tsx index c2b2059c356..7f6ee8a7949 100644 --- a/studio/components/interfaces/App/RouteValidationWrapper.tsx +++ b/studio/components/interfaces/App/RouteValidationWrapper.tsx @@ -32,8 +32,7 @@ const RouteValidationWrapper: FC = ({ children }) => { * @returns a boolean */ function isExceptUrl() { - const found = excemptUrls.includes(router?.pathname) - return found + return excemptUrls.includes(router?.pathname) } useEffect(() => {