fix: remove redundant check for max artifact count variable

This commit is contained in:
Austen Stone committed 2025-10-22 07:41:31 -04:00
1 parent 82e194b0fb
commit 2d922f08cb
1 file changed
-3
-3
View File
@@ -102,9 +102,6 @@ export function getUploadChunkTimeout(): number {
// Defaults to 1000 as a safeguard for rate limiting.
export function getMaxArtifactListCount(): number {
const maxCountVar = process.env['ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT'] || 1000
if (!maxCountVar) {
return 1000
}
const maxCount = parseInt(maxCountVar)
if (isNaN(maxCount) || maxCount < 1) {