Skip to content

Commit ad77155

Browse files
committed
[FIXUP] || => ??
1 parent 2860bca commit ad77155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-clickhouse-driver/src/ClickHouseDriver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
175175
},
176176
};
177177

178-
const maxPoolSize = config.maxPoolSize || getEnv("dbMaxPoolSize", { dataSource }) || 8;
178+
const maxPoolSize = config.maxPoolSize ?? getEnv("dbMaxPoolSize", { dataSource }) ?? 8;
179179

180180
this.client = this.createClient(maxPoolSize);
181181
}
@@ -433,7 +433,7 @@ export class ClickHouseDriver extends BaseDriver implements DriverInterface {
433433
values: unknown[],
434434
options: DownloadQueryResultsOptions
435435
): Promise<DownloadQueryResultsResult> {
436-
if ((options || {}).streamImport) {
436+
if ((options ?? {}).streamImport) {
437437
return this.stream(query, values, options);
438438
}
439439

0 commit comments

Comments
 (0)