Skip to content

Commit 7c5af59

Browse files
authored
chore(AstAnalyser): remove old TODO (#386)
1 parent ca954d8 commit 7c5af59

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

workspaces/js-x-ray/src/AstAnalyser.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ export class AstAnalyser {
146146
const source = new SourceFile(str);
147147
const runner = new ProbeRunner(source, this.probes);
148148

149-
// TODO: this check should be factorized in a way that we reuse it
150-
// on analyze and anlyseFile
151149
if (initialize) {
152150
if (typeof initialize !== "function") {
153151
throw new TypeError("options.initialize must be a function");
@@ -172,8 +170,6 @@ export class AstAnalyser {
172170
}
173171
});
174172

175-
// TODO: this check should be factorized in a way that we reuse it
176-
// on analyze and anlyseFile
177173
if (finalize) {
178174
if (typeof finalize !== "function") {
179175
throw new TypeError("options.finalize must be a function");

0 commit comments

Comments
 (0)