diff --git a/lib/log-reporter.js b/lib/log-reporter.js index 383deb1..f012ab6 100644 --- a/lib/log-reporter.js +++ b/lib/log-reporter.js @@ -17,7 +17,7 @@ module.exports = function ({ states = [] } = {}) { var state; if (!file.s3) return cb(null, file); if (!file.s3.state) return cb(null, file); - if (!allowedStates.has(file.s3.state)) return cb(null, file); + if (allowedStates.size && !allowedStates.has(file.s3.state)) return cb(null, file); state = '[' + file.s3.state + ']'; state = state.padEnd(8);