Skip to content

Commit f4a73a5

Browse files
committed
Removed unused code & made minor improvements.
1 parent 59a2671 commit f4a73a5

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

rocket-chatter-ingestion-server/src/process/prepare/codebase.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ export class Codebase {
113113
let nodes: Record<string, DBNode> = {}
114114

115115
/* Step 1 */
116-
// try {
117-
const files = this._files.slice(start, end)
118-
const jobs = files.map((x) => this._fileProcessor.process(x, nodes))
119-
await Promise.all(jobs)
120-
// } catch {
121-
// console.error(`Error in processing ${start}-${end} files`)
122-
// }
116+
try {
117+
const files = this._files.slice(start, end)
118+
const jobs = files.map((x) => this._fileProcessor.process(x, nodes))
119+
await Promise.all(jobs)
120+
} catch {
121+
console.error(`Error in processing ${start}-${end} files`)
122+
}
123123

124124
/* Step 2 */
125125
this.writeNodesToFile(nodes, `batch-${batchNumber}.json`)

rocket-chatter-ingestion-server/src/process/prepare/processor/syntax/classes.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export namespace Classes {
6666
name: node.callee.name,
6767
type: "class",
6868
})
69-
} else {
70-
// console.log("Unknown call:", e.expression)
7169
}
7270

7371
if (node.arguments) {

0 commit comments

Comments
 (0)