(err)
| 156 | // Note this is safe, as restify ensures "next" is called |
| 157 | // only once |
| 158 | function cb(err) { |
| 159 | if (err) { |
| 160 | req.log.warn(err, 'unable to delete a TODO'); |
| 161 | next(err); |
| 162 | } else if (++done === req.todos.length) { |
| 163 | next(); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | if (req.todos.length === 0) { |
| 168 | next(); |
no test coverage detected