Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit cd5b236

Browse files
committed
console: fix failure when cloudfront identities is undefined
1 parent 2d88fd5 commit cd5b236

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/formatters/console.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ export default class Console implements S3Audit.Types.Formatter {
166166
task.skip(error.message)
167167
})
168168
.then((identities: Array<string>) => {
169+
if (identities === undefined) {
170+
return
171+
}
172+
169173
if (identities.length === 0) {
170174
task.title = 'Bucket is not associated with any CloudFront distributions'
171175

0 commit comments

Comments
 (0)