Skip to content

Commit 488aedf

Browse files
committed
code polish
1 parent 02f1d55 commit 488aedf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export class PreAggregations {
512512
*/
513513
public async checkPartitionsBuildRangeCache(queryBody) {
514514
const preAggregations = queryBody.preAggregations || [];
515-
const result = await Promise.all(
515+
return Promise.all(
516516
preAggregations.map(async (preAggregation) => {
517517
const { preAggregationStartEndQueries } = preAggregation;
518518
const invalidate =
@@ -538,7 +538,6 @@ export class PreAggregations {
538538
};
539539
})
540540
);
541-
return result;
542541
}
543542

544543
public async expandPartitionsInPreAggregations(queryBody: Query): Promise<Query> {

0 commit comments

Comments
 (0)