mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 08:48:46 +00:00
Trim whitespace/remove empty lines
This commit is contained in:
Generated
+3
-3
@@ -88362,7 +88362,7 @@ async function listFiles(workingDirectory) {
|
||||
["ls-files"],
|
||||
"Unable to list tracked files."
|
||||
);
|
||||
return stdout.split(os2.EOL);
|
||||
return stdout.split(os2.EOL).filter((line) => line.trim().length > 0);
|
||||
}
|
||||
async function getGeneratedFiles(workingDirectory) {
|
||||
const files = await listFiles(workingDirectory);
|
||||
@@ -88376,8 +88376,8 @@ async function getGeneratedFiles(workingDirectory) {
|
||||
const regex = /^([^:]+): linguist-generated: true$/;
|
||||
for (const result of stdout.split(os2.EOL)) {
|
||||
const match = result.match(regex);
|
||||
if (match) {
|
||||
generatedFiles.push(match[1]);
|
||||
if (match && match[1].trim().length > 0) {
|
||||
generatedFiles.push(match[1].trim());
|
||||
}
|
||||
}
|
||||
return generatedFiles;
|
||||
|
||||
Reference in New Issue
Block a user