(res)
| 1581 | }; |
| 1582 | |
| 1583 | var nextWithBoolean = function nextWithBoolean(res) { |
| 1584 | if (typeof res === 'boolean') { |
| 1585 | res ? next() : abort(); |
| 1586 | } else if (isPromise(res)) { |
| 1587 | res.then(function (ok) { |
| 1588 | ok ? next() : abort(); |
| 1589 | }, onPromiseError); |
| 1590 | } else if (!hook.length) { |
| 1591 | next(); |
| 1592 | } |
| 1593 | }; |
| 1594 | |
| 1595 | var nextWithData = function nextWithData(data) { |
| 1596 | var res = undefined; |
no test coverage detected