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:
@@ -39,7 +39,9 @@ export const getHandler = ({ utApi }: Args): StaticHandler => {
|
||||
where: { or },
|
||||
})
|
||||
|
||||
if (result) retrievedDoc = result
|
||||
if (result) {
|
||||
retrievedDoc = result
|
||||
}
|
||||
}
|
||||
|
||||
if (!retrievedDoc) {
|
||||
|
||||
Reference in New Issue
Block a user