Skip to content

Commit

Permalink
style(defaultWhen): apply new prettier rules
Browse files Browse the repository at this point in the history
  • Loading branch information
char0n committed Nov 24, 2018
1 parent d5751f0 commit c80fd5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/defaultWhen.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { curry } from 'ramda';
* RA.defaultWhen(RA.isNull, 1, null); // => 1
* RA.defaultWhen(RA.isNull, 1, 2); // => 2
*/
const defaultWhen = curry(
(predicate, defaultVal, val) => (predicate(val) ? defaultVal : val)
const defaultWhen = curry((predicate, defaultVal, val) =>
predicate(val) ? defaultVal : val
);

export default defaultWhen;

0 comments on commit c80fd5d

Please sign in to comment.