Skip to content

Commit

Permalink
style: Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgv committed Mar 10, 2018
1 parent dd39dad commit a288a58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const generateRoutes = ({
const localizedRoutes = []
// Extract routes that should not be localized
baseRoutes.forEach(route => {
const isIgnoredPath = (-1 !== ignorePaths.findIndex(pattern => {
const regexp = new RegExp(pattern)
return route.path.match(pattern)
}))
const isIgnoredPath = (ignorePaths.findIndex(pattern => {
const regexp = new RegExp(pattern)
return route.path.match(regexp)
}) !== -1)
if (isIgnoredPath) {
newRoutes.push(route)
} else {
Expand Down

0 comments on commit a288a58

Please sign in to comment.