Skip to content

Commit 3986617

Browse files
authored
Update src/index.ts
1 parent 891b3e7 commit 3986617

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ export function identify(query: string, options: IdentifyOptions = {}): Identify
2424
let paramTypes: ParamTypes;
2525

2626
// Default parameter types for each dialect
27-
if (options.paramTypes) {
28-
paramTypes = options.paramTypes;
29-
} else {
30-
paramTypes = defaultParamTypesFor(dialect);
31-
}
27+
paramTypes = options.paramTypes || defaultParamTypesFor(dialect);
3228

3329
const result = parse(query, isStrict, dialect, options.identifyTables, paramTypes);
3430
const sort = dialect === 'psql' && !options.paramTypes;

0 commit comments

Comments
 (0)