diff --git a/index.js b/index.js index 7fb3ad3..af76598 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ const getAllFindings = async (ECR, repository, tag) => { return { marker: findings.nextToken, - results: findings.imageScanFindings.findings || findings.imageScanFindings.enhancedFindings, + results: findings.imageScanFindings.enhancedFindings, }; }) };