We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6189702 commit c5c5b12Copy full SHA for c5c5b12
functions/clean_ecr_images/index.js
@@ -25,7 +25,10 @@ function findImagesToClear(images, age) {
25
function deleteImages(images, repositoryName) {
26
const imageIds = images.map(i => _.pick(i, 'imageDigest'));
27
28
- if (imageIds.length == 0) return;
+ if(imageIds.length === 0) {
29
+ console.log("No image to be cleared");
30
+ return;
31
+ }
32
33
return ecr.batchDeleteImage({
34
imageIds: imageIds,
0 commit comments