From 398661718f229770a0d7f8436e9d9d4ad340aea8 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 30 Apr 2024 16:05:31 -0400 Subject: [PATCH] Update src/index.ts --- src/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9a9f299..ec616d6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,11 +24,7 @@ export function identify(query: string, options: IdentifyOptions = {}): Identify let paramTypes: ParamTypes; // Default parameter types for each dialect - if (options.paramTypes) { - paramTypes = options.paramTypes; - } else { - paramTypes = defaultParamTypesFor(dialect); - } + paramTypes = options.paramTypes || defaultParamTypesFor(dialect); const result = parse(query, isStrict, dialect, options.identifyTables, paramTypes); const sort = dialect === 'psql' && !options.paramTypes;