From 33c5ad4cee72574c7d2cf2f107e6e846f845853a Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Tue, 4 Dec 2018 22:02:00 -0800 Subject: [PATCH] lint --- docs/pages/_app.js | 2 -- docs/src/SideNav.js | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/pages/_app.js b/docs/pages/_app.js index 5a661475..a127688a 100644 --- a/docs/pages/_app.js +++ b/docs/pages/_app.js @@ -99,5 +99,3 @@ function List({items, ...rest}) { } return null } - -function noop() {} diff --git a/docs/src/SideNav.js b/docs/src/SideNav.js index 5231e433..bf23ff2d 100644 --- a/docs/src/SideNav.js +++ b/docs/src/SideNav.js @@ -2,7 +2,6 @@ import React from 'react' import {join} from 'path' import {withRouter} from 'next/router' import {Box, BorderBox, Flex, Relative} from '@primer/components' -import Link from './Link' import NodeLink from './NodeLink' import {rootPage} from './utils' @@ -95,7 +94,7 @@ const Router = withRouter(({router, children}) => { return React.Children.toArray(children).map(child => { if (child.props.path) { if (!matched && router.pathname.indexOf(child.props.path) === 0) { - return matched = child + return (matched = child) } } else { return child @@ -106,4 +105,3 @@ const Router = withRouter(({router, children}) => { function RouteMatch({children}) { return children } -