Skip to content

Commit d1c3bfe

Browse files
committed
Minor changes
1 parent 62e6f25 commit d1c3bfe

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

ingestion/src/main.ts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
import { exec } from "child_process";
2-
import { v4 as uuid } from "uuid";
1+
import { exec } from "child_process"
2+
import { v4 as uuid } from "uuid"
33

4-
import { REPO_URI } from "./constants";
5-
import { insertDataIntoDB } from "./process/ingest/ingest";
6-
import { Codebase } from "./process/prepare/codebase";
7-
import { FileProcessor } from "./process/prepare/processor/file";
4+
import { insertDataIntoDB } from "./process/ingest/ingest"
5+
import { Codebase } from "./process/prepare/codebase"
6+
import { FileProcessor } from "./process/prepare/processor/file"
87

98
namespace Algorithms {
109
export async function execCommand(command: string) {
1110
await new Promise((resolve, reject) => {
1211
exec(command, (error, stdout, stderr) => {
1312
if (error) {
14-
reject(`Error: ${error.message}`);
15-
return;
13+
reject(`Error: ${error.message}`)
14+
return
1615
}
1716
if (stderr) {
18-
reject(`Stderr: ${stderr}`);
19-
return;
17+
reject(`Stderr: ${stderr}`)
18+
return
2019
}
21-
resolve(stdout);
22-
});
23-
});
20+
resolve(stdout)
21+
})
22+
})
2423
}
25-
2624
}
2725

2826
async function main() {

0 commit comments

Comments
 (0)