Skip to content

Commit 1255903

Browse files
committed
renaming
1 parent bcafe58 commit 1255903

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ export class YamlCompiler {
8989
for (const key of Object.keys(yamlObj)) {
9090
if (key === 'cubes') {
9191
(yamlObj.cubes || []).forEach(({ name, ...cube }) => {
92-
const transpiledFile = this.transpileAndPrepareJsFile('cube', { name, ...cube }, errorsReport);
93-
transpiledFilesContent.push(transpiledFile);
92+
const transpiledCube = this.transpileAndPrepareJsFile('cube', { name, ...cube }, errorsReport);
93+
transpiledFilesContent.push(transpiledCube);
9494
});
9595
} else if (key === 'views') {
9696
(yamlObj.views || []).forEach(({ name, ...cube }) => {
97-
const transpiledFile = this.transpileAndPrepareJsFile('view', { name, ...cube }, errorsReport);
98-
transpiledFilesContent.push(transpiledFile);
97+
const transpiledView = this.transpileAndPrepareJsFile('view', { name, ...cube }, errorsReport);
98+
transpiledFilesContent.push(transpiledView);
9999
});
100100
} else {
101101
errorsReport.error(`Unexpected YAML key: ${key}. Only 'cubes' and 'views' are allowed here.`);

0 commit comments

Comments
 (0)