Skip to content

Commit 33b2a98

Browse files
committed
remove errorsReport from worker_thread as it is useless
1 parent 3a512cb commit 33b2a98

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/cubejs-schema-compiler/src/compiler/transpilers/transpiler_worker.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import workerpool from 'workerpool';
22
import { transformSync } from '@swc/core';
33

4-
import { ErrorReporter } from '../ErrorReporter';
5-
64
type TransferContent = {
75
fileName: string;
86
content: string;
@@ -14,7 +12,6 @@ type TransferContent = {
1412

1513
type TranspilerPlugin = [string, Record<string, any>];
1614

17-
const errorsReport = new ErrorReporter(null, []);
1815

1916
const transpilers = {
2017
ValidationTranspiler:
@@ -58,8 +55,6 @@ const transpile = (data: TransferContent) => {
5855

5956
return {
6057
content: result.code,
61-
errors: errorsReport.getErrors(),
62-
warnings: errorsReport.getWarnings()
6358
};
6459
};
6560

0 commit comments

Comments
 (0)