fix(config): don't set connection info with falsey key

When using the semicolon connection string, a trailing semicolon
displays an error about an invalid configuration option.
This commit is contained in:
Linden committed 2023-07-12 00:09:00 +10:00
1 parent b2387fc33a
commit 37a3a7cd0a
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ export const connectionOptions = (() => {
.split(';')
.reduce<Record<string, string>>((connectionInfo, parameter) => {
const [key, value] = parameter.split('=');
connectionInfo[key] = value;
if (key) connectionInfo[key] = value;
return connectionInfo;
}, {});