Skip to content

Commit

Permalink
refactor(ramda)
Browse files Browse the repository at this point in the history
  • Loading branch information
evenchange4 committed Dec 14, 2017
1 parent e595594 commit 2af6b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ function extract(srcPattern /* : string */) /* : string */ {
messages,
relativeSrcPaths
)
.filter(m => m.length !== 0)
.reduce((acc, m) => acc.concat(m), []);
.filter(R.complement(R.isEmpty))
.reduce(R.concat, []);

return result;
}
Expand Down

0 comments on commit 2af6b11

Please sign in to comment.