Refactor: Simplify getMatchingAsset function parameters in CLI and matcher modules

This commit is contained in:
2026-04-06 18:46:31 +02:00
parent 89ea0cecb0
commit 0132ee6665
3 changed files with 3 additions and 15 deletions

View File

@@ -91,10 +91,7 @@ async function run() {
core.info(`Fetching latest release information for ${repository}...`);
const release = await fetchLatestRelease(repository, token);
const asset = getMatchingAsset(release.assets, platformInfo, {
fileName: fileNameInput,
fileType: fileType
});
const asset = getMatchingAsset(release.assets, platformInfo, fileNameInput, fileType);
core.info(`Selected asset: ${asset.name}`);