Skip to content

Commit 845c512

Browse files
fix(lint): replace continue statement with if block
The no-continue eslint rule prohibits continue statements. Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>
1 parent 9302eea commit 845c512

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

packages/cubejs-schema-compiler/src/compiler/CubeEvaluator.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,18 @@ export class CubeEvaluator extends CubeSymbols {
230230
const syntheticDims: Record<string, any> = {};
231231

232232
for (const [dimName, dimDef] of Object.entries<any>(cube.dimensions)) {
233-
if (!dimDef.links || !Array.isArray(dimDef.links)) continue;
234-
235-
dimDef.links.forEach((link: any) => {
236-
const syntheticName = `${dimName}___link_${link.name}_url`;
237-
syntheticDims[syntheticName] = {
238-
sql: link.url,
239-
type: 'string',
240-
synthetic: true,
241-
ownedByCube: true,
242-
public: false,
243-
};
244-
});
233+
if (dimDef.links && Array.isArray(dimDef.links)) {
234+
dimDef.links.forEach((link: any) => {
235+
const syntheticName = `${dimName}___link_${link.name}_url`;
236+
syntheticDims[syntheticName] = {
237+
sql: link.url,
238+
type: 'string',
239+
synthetic: true,
240+
ownedByCube: true,
241+
public: false,
242+
};
243+
});
244+
}
245245
}
246246

247247
if (Object.keys(syntheticDims).length > 0) {

0 commit comments

Comments
 (0)