fix: remove redundant check for max artifact count variable

This commit is contained in:
Austen Stone
2025-10-22 07:41:31 -04:00
parent be1151df02
commit 9bb6708527
@@ -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) {