From a6b960be00b6e39a4df5515effb6766626a72556 Mon Sep 17 00:00:00 2001 From: Cameron Chamberlain Date: Tue, 12 Nov 2019 12:13:41 +1100 Subject: [PATCH] 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. --- flow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow.js b/flow.js index 7e7ae8961..c797a7247 100644 --- a/flow.js +++ b/flow.js @@ -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') {