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
+3 -2
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');