mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Inline FUNC_ERROR_TEXT.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
/** Error message constants. */
|
||||
const FUNC_ERROR_TEXT = 'Expected a function';
|
||||
|
||||
/**
|
||||
* Creates a `flow` or `flowRight` function.
|
||||
*
|
||||
@@ -22,7 +19,7 @@ function createFlow(fromRight) {
|
||||
while (index--) {
|
||||
func = funcs[index];
|
||||
if (typeof func != 'function') {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
throw new TypeError('Expected a function');
|
||||
}
|
||||
}
|
||||
return function(...args) {
|
||||
|
||||
Reference in New Issue
Block a user