Remove unneeded async/await
This commit is contained in:
+3
-2
@@ -21850,7 +21850,7 @@ const glob = __nccwpck_require__(1957);
|
|||||||
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
let manifests = getManifestsFromSpdxFiles(await searchFiles());
|
let manifests = getManifestsFromSpdxFiles(searchFiles());
|
||||||
|
|
||||||
let snapshot = new _github_dependency_submission_toolkit__WEBPACK_IMPORTED_MODULE_0__.Snapshot({
|
let snapshot = new _github_dependency_submission_toolkit__WEBPACK_IMPORTED_MODULE_0__.Snapshot({
|
||||||
name: "spdx-to-dependency-graph-action",
|
name: "spdx-to-dependency-graph-action",
|
||||||
@@ -21886,6 +21886,7 @@ function getManifestFromSpdxFile(content, fileName) {
|
|||||||
return manifest;
|
return manifest;
|
||||||
}
|
}
|
||||||
function getManifestsFromSpdxFiles(files) {
|
function getManifestsFromSpdxFiles(files) {
|
||||||
|
core.debug(`Processing ${files.length} files`);
|
||||||
let manifests = [];
|
let manifests = [];
|
||||||
files?.forEach(file => {
|
files?.forEach(file => {
|
||||||
core.debug(`Processing ${file}`);
|
core.debug(`Processing ${file}`);
|
||||||
@@ -21897,7 +21898,7 @@ function getManifestsFromSpdxFiles(files) {
|
|||||||
return manifests;
|
return manifests;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function searchFiles() {
|
function searchFiles() {
|
||||||
let filePath = core.getInput('filePath');
|
let filePath = core.getInput('filePath');
|
||||||
let filePattern = core.getInput('filePattern');
|
let filePattern = core.getInput('filePattern');
|
||||||
|
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -12,7 +12,7 @@ import {
|
|||||||
} from '@github/dependency-submission-toolkit'
|
} from '@github/dependency-submission-toolkit'
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
let manifests = getManifestsFromSpdxFiles(await searchFiles());
|
let manifests = getManifestsFromSpdxFiles(searchFiles());
|
||||||
|
|
||||||
let snapshot = new Snapshot({
|
let snapshot = new Snapshot({
|
||||||
name: "spdx-to-dependency-graph-action",
|
name: "spdx-to-dependency-graph-action",
|
||||||
@@ -48,6 +48,7 @@ function getManifestFromSpdxFile(content, fileName) {
|
|||||||
return manifest;
|
return manifest;
|
||||||
}
|
}
|
||||||
function getManifestsFromSpdxFiles(files) {
|
function getManifestsFromSpdxFiles(files) {
|
||||||
|
core.debug(`Processing ${files.length} files`);
|
||||||
let manifests = [];
|
let manifests = [];
|
||||||
files?.forEach(file => {
|
files?.forEach(file => {
|
||||||
core.debug(`Processing ${file}`);
|
core.debug(`Processing ${file}`);
|
||||||
@@ -59,7 +60,7 @@ function getManifestsFromSpdxFiles(files) {
|
|||||||
return manifests;
|
return manifests;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function searchFiles() {
|
function searchFiles() {
|
||||||
let filePath = core.getInput('filePath');
|
let filePath = core.getInput('filePath');
|
||||||
let filePattern = core.getInput('filePattern');
|
let filePattern = core.getInput('filePattern');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user