chore(eslint): curly [skip-lint] (#7959)
Now enforcing curly brackets on all if statements. Includes auto-fixer. ```ts // ❌ Bad if (foo) foo++; // ✅ Good if (foo) { foo++; } ``` Note: this did not lint the `drizzle` package or any `db-*` packages. This will be done in the future.
This commit is contained in:
@@ -117,7 +117,9 @@ export const initPage = async ({
|
||||
|
||||
locale = findLocaleFromCode(localization, localeCode)
|
||||
|
||||
if (!locale) locale = findLocaleFromCode(localization, defaultLocaleCode)
|
||||
if (!locale) {
|
||||
locale = findLocaleFromCode(localization, defaultLocaleCode)
|
||||
}
|
||||
req.locale = locale.code
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user