Skip to content

Commit

Permalink
manifest reference on string
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-JAlvarez committed Dec 13, 2023
1 parent d56cac3 commit 4156e0f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/services/AnalysisService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,9 @@ class AnalysisService {
);
});

if (maxFiles < 1) {
return { filePaths: matchingFiles, hasMoreThanMaximumFiles: false };
}
if (maxFiles < 1) {
return { filePaths: matchingFiles, hasMoreThanMaximumFiles: false };
}

const hasMoreThanMaximumFiles = matchingFiles.length > maxFiles;
const filesToUpload = matchingFiles.slice(0, maxFiles);
Expand All @@ -411,13 +411,10 @@ class AnalysisService {
"file was",
"files were",
);
const filesSkippedString = StringUtilities.pluralizeTemplate(
filesToSkip.length,
"file"
);
const filesSkippedString = StringUtilities.pluralizeTemplate(filesToSkip.length, "file");
soosLogger.info(
`The maximum number of ${scanType} files per scan is ${maxFiles}. ${filesDetectedString} detected, and ${filesSkippedString} will be not be uploaded. \n`,
`The following manifests will not be included in the scan: \n`,
`The following files will not be included in the scan: \n`,
filesToSkip.map((file) => ` "${Path.basename(file)}": "${file}"`).join("\n"),
);
}
Expand Down

0 comments on commit 4156e0f

Please sign in to comment.