lib/agent/actions/logretrieval/index.js
Function collectFiles
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const collectFiles = (outputFile, cb) => {
const output = fs.createWriteStream(outputFile);
const archive = archiver('zip', {
zlib: { level: 9 },
});