Skip to content

Commit ac53b49

Browse files
committed
[hygiene] Braces
1 parent a8e012e commit ac53b49

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/persisters/common/database/postgresql.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,14 @@ export const createCustomPostgreSqlPersister = <
5959

6060
const getWhenCondition = (tableName: string, newOrOld: 'NEW' | 'OLD') => {
6161
const tablesLoadConfig = defaultedConfig[0];
62-
if(!tablesLoadConfig || typeof tablesLoadConfig === 'string') return 'true';
62+
if (!tablesLoadConfig || typeof tablesLoadConfig === 'string') {
63+
return 'true';
64+
}
6365

64-
const [,,condition] = tablesLoadConfig.get(tableName) ?? [];
65-
if(!condition) return 'true';
66+
const [, , condition] = tablesLoadConfig.get(tableName) ?? [];
67+
if (!condition) {
68+
return 'true';
69+
}
6670

6771
return condition.replace(TABLE_NAME_PLACEHOLDER, newOrOld);
6872
};

0 commit comments

Comments
 (0)