Merge pull request #695 from is-a-good-dev/Tweak4141-patch-2

Update getFileName.js to remove invalid code
This commit is contained in:
Tweak authored and GitHub committed 2024-09-08 21:26:28 -06:00
commit 427dce0a01
1 file changed
+1 -2
+1 -2
View File
@@ -7,11 +7,10 @@ async function getFileName(file, data) {
// Validate if the file name matches any of the target.RECORD_TYPE values
const recordTypes = Object.keys(data.target);
if (!recordTypes.includes(fileNameWithoutExt.toUpperCase())) {
core.setOutput('infoMessage', `File name ${fileNameWithoutExt} does not match any target.RECORD_TYPE`);
return false;
} else {
return true;
}
}
module.exports = getFileName;
module.exports = getFileName;