Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ilterra committed May 31, 2019
1 parent f689b07 commit ad8d576
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ const JOIN_SEPARATOR = '\n---\n';
* @returns {Array}
*/
const checkMetadataOnly = R.ifElse(
R.both(R.compose(R.equals(1), R.length), R.test(METADATA_FILE_END)),
R.both(
R.compose(
R.equals(1),
R.length
),
R.test(METADATA_FILE_END)
),
R.compose(
R.append(''),
R.of,
Expand All @@ -32,7 +38,10 @@ const checkMetadataOnly = R.ifElse(
*/
const splitSource = R.ifElse(
R.test(METADATA_START),
R.compose(checkMetadataOnly, R.split(METADATA_END)),
R.compose(
checkMetadataOnly,
R.split(METADATA_END)
),
R.of
);

Expand Down

0 comments on commit ad8d576

Please sign in to comment.