Skip to content

Commit

Permalink
Wrap last return statement in else to fix tree shaking (#27788)
Browse files Browse the repository at this point in the history
## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

fixes #27744
  • Loading branch information
smitssjors committed Aug 5, 2021
1 parent 504d478 commit d313855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/shared/lib/router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ export function getDomainLocale(
}${locale === detectedDomain.defaultLocale ? '' : `/${locale}`}${path}`
}
return false
} else {
return false
}

return false
}

export function addLocale(
Expand Down

0 comments on commit d313855

Please sign in to comment.