We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3116afe commit a8c6959Copy full SHA for a8c6959
lib/util/parseHeaders.js
@@ -19,8 +19,8 @@ const removeMarkdownToken = str => str
19
20
// put here to avoid circular references
21
const compose = (...processors) => {
22
- if (processors.length === 0) input => input
23
- if (processors.length === 1) processors[0]
+ if (processors.length === 0) return input => input
+ if (processors.length === 1) return processors[0]
24
return processors.reduce((prev, next) => {
25
return (...args) => next(prev(...args))
26
})
0 commit comments