mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-03 07:13:13 +00:00
Merge pull request #695 from is-a-good-dev/Tweak4141-patch-2
Update getFileName.js to remove invalid code
This commit is contained in:
1 file changed
+1
-2
@@ -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;
|
||||
Reference in new issue
Block a user