(promise, followMethod, type)
| 34 | } |
| 35 | |
| 36 | function getAllItems(promise, followMethod, type) { |
| 37 | return promise.then(followMethod) |
| 38 | .then((data) => { |
| 39 | return data.url ? getAllItems(Promise.resolve(data), followMethod, type) : data.items; |
| 40 | }); |
| 41 | } |
| 42 | |
| 43 | function createSCM(item) { |
| 44 | switch (item.scm) { |
no outgoing calls
no test coverage detected