Skip to content

Commit

Permalink
fix: fixed linting from PR #24
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Nov 17, 2020
1 parent fd6dd48 commit 4966a2e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ class I18N {

// locales must be supplied as an array of string
if (!Array.isArray(this.config.locales))
throw new Error(
`Locales must be an array of strings`
);
throw new Error(`Locales must be an array of strings`);

// validate locales against available ones
if (!every(this.config.locales, (l) => locales.includes(l)))
Expand Down Expand Up @@ -187,7 +185,8 @@ class I18N {
if (locale !== ctx.state.locale) {
debug('locale was not available redirecting user');
return ctx.redirect(
`/${ctx.state.locale}${ctx.pathWithoutLocale}${isEmpty(ctx.query) ? '' : stringify(ctx.query, this.config.stringify)
`/${ctx.state.locale}${ctx.pathWithoutLocale}${
isEmpty(ctx.query) ? '' : stringify(ctx.query, this.config.stringify)
}`
);
}
Expand Down

0 comments on commit 4966a2e

Please sign in to comment.