fix: remove redundant check for max artifact count variable
This commit is contained in:
1 parent
82e194b0fb
commit
2d922f08cb
1 file changed
-3
@@ -102,9 +102,6 @@ export function getUploadChunkTimeout(): number {
|
|||||||
// Defaults to 1000 as a safeguard for rate limiting.
|
// Defaults to 1000 as a safeguard for rate limiting.
|
||||||
export function getMaxArtifactListCount(): number {
|
export function getMaxArtifactListCount(): number {
|
||||||
const maxCountVar = process.env['ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT'] || 1000
|
const maxCountVar = process.env['ACTIONS_ARTIFACT_MAX_ARTIFACT_COUNT'] || 1000
|
||||||
if (!maxCountVar) {
|
|
||||||
return 1000
|
|
||||||
}
|
|
||||||
|
|
||||||
const maxCount = parseInt(maxCountVar)
|
const maxCount = parseInt(maxCountVar)
|
||||||
if (isNaN(maxCount) || maxCount < 1) {
|
if (isNaN(maxCount) || maxCount < 1) {
|
||||||
|
|||||||
Reference in new issue
Block a user