Consistent parens usage for arrow functions with body.

This commit is contained in:
Michał Lipiński
2017-02-27 12:15:08 +01:00
parent 4c4b29cdef
commit d8b5183b1d
13 changed files with 16 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ import arrayMap from './.internal/arrayMap.js'
function cond(pairs) {
const length = pairs == null ? 0 : pairs.length
pairs = !length ? [] : arrayMap(pairs, pair => {
pairs = !length ? [] : arrayMap(pairs, (pair) => {
if (typeof pair[1] != 'function') {
throw new TypeError('Expected a function')
}