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:
@@ -43,7 +43,9 @@ export const Verify: React.FC<AdminViewProps> = async ({
|
||||
return redirect(formatAdminURL({ adminRoute, path: '/login' }))
|
||||
} catch (e) {
|
||||
// already verified
|
||||
if (e?.status === 202) redirect(formatAdminURL({ adminRoute, path: '/login' }))
|
||||
if (e?.status === 202) {
|
||||
redirect(formatAdminURL({ adminRoute, path: '/login' }))
|
||||
}
|
||||
textToRender = req.t('authentication:unableToVerify')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user