Remove extraneous conditional (#4531)

Since `function flow(funcs)` changed to `function flow(...funcs)` this ternary became unnecessary, since funcs will always have a length now.
This commit is contained in:
Cameron Chamberlain
2019-11-12 12:13:41 +11:00
committed by John-David Dalton
parent 657f8bf71e
commit a6b960be00

View File

@@ -21,7 +21,7 @@
* // => 9
*/
function flow(...funcs) {
const length = funcs ? funcs.length : 0
const length = funcs.length
let index = length
while (index--) {
if (typeof funcs[index] !== 'function') {