Skip to content

Commit

Permalink
Remove extraneous conditional (lodash#4531)
Browse files Browse the repository at this point in the history
Since `function flow(funcs)` changed to `function flow(...funcs)` this ternary became unnecessary, since funcs will always have a length now.
  • Loading branch information
camjc authored and jdalton committed Nov 12, 2019
1 parent 657f8bf commit a6b960b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit a6b960b

Please sign in to comment.