We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca954d8 commit 7c5af59Copy full SHA for 7c5af59
workspaces/js-x-ray/src/AstAnalyser.ts
@@ -146,8 +146,6 @@ export class AstAnalyser {
146
const source = new SourceFile(str);
147
const runner = new ProbeRunner(source, this.probes);
148
149
- // TODO: this check should be factorized in a way that we reuse it
150
- // on analyze and anlyseFile
151
if (initialize) {
152
if (typeof initialize !== "function") {
153
throw new TypeError("options.initialize must be a function");
@@ -172,8 +170,6 @@ export class AstAnalyser {
172
170
}
173
171
});
174
175
176
177
if (finalize) {
178
if (typeof finalize !== "function") {
179
throw new TypeError("options.finalize must be a function");
0 commit comments