(xmlToParse, next)
| 116 | } |
| 117 | |
| 118 | function parseXml(xmlToParse, next) { |
| 119 | return parseString(xmlToParse, (err, result) => { |
| 120 | if (err || !result || !result.CompleteMultipartUpload |
| 121 | || !result.CompleteMultipartUpload.Part) { |
| 122 | return next(errors.MalformedXML); |
| 123 | } |
| 124 | const jsonList = result.CompleteMultipartUpload; |
| 125 | return next(null, jsonList); |
| 126 | }); |
| 127 | } |
| 128 | |
| 129 | return async.waterfall([ |
| 130 | function validateDestBucket(next) { |
no outgoing calls
no test coverage detected