Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 4475c08

Browse files
authored
Lint and remove go.sum search
1 parent d83c57d commit 4475c08

File tree

8 files changed

+542
-19789
lines changed

8 files changed

+542
-19789
lines changed

dist/go_mod_parser.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
exports.parseDependents = void 0;
44
const processor_1 = require("@github/dependency-submission-toolkit/dist/processor");
55
function parseDependents(contents) {
6-
const stdoutArr = contents.split('\n');
6+
const stdoutArr = contents.split("\n");
77
const splitStdoutArr = stdoutArr.map(function (line) {
8-
return line.split(' ');
8+
return line.split(" ");
99
});
1010
const entries = {};
1111
const repoName = splitStdoutArr[0][0];
@@ -18,21 +18,21 @@ function parseDependents(contents) {
1818
const dependencyPkg = `pkg:golang/${line[1]}`;
1919
const matchFound = line[0].match(repoName);
2020
if (matchFound && matchFound.index != null) {
21-
entries[dependencyPkg] = new processor_1.Entry(dependencyPkg, 'direct');
21+
entries[dependencyPkg] = new processor_1.Entry(dependencyPkg, "direct");
2222
return;
2323
}
2424
if (targetPkg in entries) {
2525
targetEntry = entries[targetPkg];
2626
}
2727
else {
28-
targetEntry = new processor_1.Entry(targetPkg, 'indirect');
28+
targetEntry = new processor_1.Entry(targetPkg, "indirect");
2929
entries[targetPkg] = targetEntry;
3030
}
3131
if (dependencyPkg in entries) {
3232
dependencyEntry = entries[dependencyPkg];
3333
}
3434
else {
35-
dependencyEntry = new processor_1.Entry(dependencyPkg, 'indirect');
35+
dependencyEntry = new processor_1.Entry(dependencyPkg, "indirect");
3636
entries[dependencyPkg] = dependencyEntry;
3737
}
3838
targetEntry.addDependency(dependencyEntry);

0 commit comments

Comments
 (0)