Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Apr 27, 2018
1 parent 3116afe commit a8c6959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/parseHeaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const removeMarkdownToken = str => str

// put here to avoid circular references
const compose = (...processors) => {
if (processors.length === 0) input => input
if (processors.length === 1) processors[0]
if (processors.length === 0) return input => input
if (processors.length === 1) return processors[0]
return processors.reduce((prev, next) => {
return (...args) => next(prev(...args))
})
Expand Down

0 comments on commit a8c6959

Please sign in to comment.