Remove unneeded async/await

This commit is contained in:
Justin Hutchings
2022-10-04 12:03:50 -07:00
parent d2bc2520fc
commit ce912f3cbb
3 changed files with 7 additions and 5 deletions

5
dist/index.js generated vendored
View File

@@ -21850,7 +21850,7 @@ const glob = __nccwpck_require__(1957);
async function run() {
let manifests = getManifestsFromSpdxFiles(await searchFiles());
let manifests = getManifestsFromSpdxFiles(searchFiles());
let snapshot = new _github_dependency_submission_toolkit__WEBPACK_IMPORTED_MODULE_0__.Snapshot({
name: "spdx-to-dependency-graph-action",
@@ -21886,6 +21886,7 @@ function getManifestFromSpdxFile(content, fileName) {
return manifest;
}
function getManifestsFromSpdxFiles(files) {
core.debug(`Processing ${files.length} files`);
let manifests = [];
files?.forEach(file => {
core.debug(`Processing ${file}`);
@@ -21897,7 +21898,7 @@ function getManifestsFromSpdxFiles(files) {
return manifests;
}
async function searchFiles() {
function searchFiles() {
let filePath = core.getInput('filePath');
let filePattern = core.getInput('filePattern');

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -12,7 +12,7 @@ import {
} from '@github/dependency-submission-toolkit'
async function run() {
let manifests = getManifestsFromSpdxFiles(await searchFiles());
let manifests = getManifestsFromSpdxFiles(searchFiles());
let snapshot = new Snapshot({
name: "spdx-to-dependency-graph-action",
@@ -48,6 +48,7 @@ function getManifestFromSpdxFile(content, fileName) {
return manifest;
}
function getManifestsFromSpdxFiles(files) {
core.debug(`Processing ${files.length} files`);
let manifests = [];
files?.forEach(file => {
core.debug(`Processing ${file}`);
@@ -59,7 +60,7 @@ function getManifestsFromSpdxFiles(files) {
return manifests;
}
async function searchFiles() {
function searchFiles() {
let filePath = core.getInput('filePath');
let filePattern = core.getInput('filePattern');