From 8b441a506ba4ea0f86f19bc0250c9ec2731b75d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Tue, 20 Aug 2019 12:13:07 +0200 Subject: [PATCH] Align indentations --- .gitignore | 3 +++ .internal/arrayLikeKeys.js | 4 ++-- .internal/baseIntersection.js | 12 ++++++------ .internal/baseIsMatch.js | 12 ++++++------ .internal/equalArrays.js | 4 ++-- .internal/equalObjects.js | 6 +++--- .internal/isIterateeCall.js | 6 +++--- .internal/stringToPath.js | 2 +- maxBy.js | 6 +++--- minBy.js | 6 +++--- split.js | 4 ++-- 11 files changed, 34 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 281c0d462..14ec97ff6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ *.log* doc/*.html node_modules +*.code-workspace +*.sublime-project +*.sublime-workspace diff --git a/.internal/arrayLikeKeys.js b/.internal/arrayLikeKeys.js index 9bc7e85b8..97e002c44 100644 --- a/.internal/arrayLikeKeys.js +++ b/.internal/arrayLikeKeys.js @@ -29,8 +29,8 @@ function arrayLikeKeys(value, inherited) { for (const key in value) { if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - (key == 'length' || + // Safari 9 has enumerable `arguments.length` in strict mode. + (key == 'length' || // Skip index properties. isIndex(key, length)) ))) { diff --git a/.internal/baseIntersection.js b/.internal/baseIntersection.js index 8651bc41b..b723872b4 100644 --- a/.internal/baseIntersection.js +++ b/.internal/baseIntersection.js @@ -47,16 +47,16 @@ function baseIntersection(arrays, iteratee, comparator) { value = (comparator || value !== 0) ? value : 0 if (!(seen - ? cacheHas(seen, computed) - : includes(result, computed, comparator) - )) { + ? cacheHas(seen, computed) + : includes(result, computed, comparator) + )) { othIndex = othLength while (--othIndex) { const cache = caches[othIndex] if (!(cache - ? cacheHas(cache, computed) - : includes(arrays[othIndex], computed, comparator)) - ) { + ? cacheHas(cache, computed) + : includes(arrays[othIndex], computed, comparator)) + ) { continue outer } } diff --git a/.internal/baseIsMatch.js b/.internal/baseIsMatch.js index 36bdb0395..07ab10ef3 100644 --- a/.internal/baseIsMatch.js +++ b/.internal/baseIsMatch.js @@ -29,9 +29,9 @@ function baseIsMatch(object, source, matchData, customizer) { while (index--) { data = matchData[index] if ((noCustomizer && data[2]) - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) { + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { return false } } @@ -51,9 +51,9 @@ function baseIsMatch(object, source, matchData, customizer) { result = customizer(objValue, srcValue, key, object, source, stack) } if (!(result === undefined - ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) - : result - )) { + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) + : result + )) { return false } } diff --git a/.internal/equalArrays.js b/.internal/equalArrays.js index 3ef2b8e9e..fac53cbfd 100644 --- a/.internal/equalArrays.js +++ b/.internal/equalArrays.js @@ -69,9 +69,9 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { break } } else if (!( - arrValue === othValue || + arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack) - )) { + )) { result = false break } diff --git a/.internal/equalObjects.js b/.internal/equalObjects.js index 200f8cae7..690452f71 100644 --- a/.internal/equalObjects.js +++ b/.internal/equalObjects.js @@ -60,9 +60,9 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { } // Recursively compare objects (susceptible to call stack limits). if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) - : compared - )) { + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) + : compared + )) { result = false break } diff --git a/.internal/isIterateeCall.js b/.internal/isIterateeCall.js index 7b5ad358d..0a9430cf6 100644 --- a/.internal/isIterateeCall.js +++ b/.internal/isIterateeCall.js @@ -20,9 +20,9 @@ function isIterateeCall(value, index, object) { } const type = typeof index if (type == 'number' - ? (isArrayLike(object) && isIndex(index, object.length)) - : (type == 'string' && index in object) - ) { + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { return eq(object[index], value) } return false diff --git a/.internal/stringToPath.js b/.internal/stringToPath.js index 8ba607eb1..d9def5933 100644 --- a/.internal/stringToPath.js +++ b/.internal/stringToPath.js @@ -14,7 +14,7 @@ const rePropName = RegExp( ')\\]'+ '|' + // Or match "" as the space between consecutive dots or empty brackets. '(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))' -, 'g') + , 'g') /** * Converts `string` to a property path array. diff --git a/maxBy.js b/maxBy.js index 5cfa987f6..d8d9d5903 100644 --- a/maxBy.js +++ b/maxBy.js @@ -27,9 +27,9 @@ function maxBy(array, iteratee) { const current = iteratee(value) if (current != null && (computed === undefined - ? (current === current && !isSymbol(current)) - : (current > computed) - )) { + ? (current === current && !isSymbol(current)) + : (current > computed) + )) { computed = current result = value } diff --git a/minBy.js b/minBy.js index 327428faa..cb0fe8233 100644 --- a/minBy.js +++ b/minBy.js @@ -27,9 +27,9 @@ function minBy(array, iteratee) { const current = iteratee(value) if (current != null && (computed === undefined - ? (current === current && !isSymbol(current)) - : (current < computed) - )) { + ? (current === current && !isSymbol(current)) + : (current < computed) + )) { computed = current result = value } diff --git a/split.js b/split.js index 44da94e1b..5d9dcc62f 100644 --- a/split.js +++ b/split.js @@ -29,9 +29,9 @@ function split(string, separator, limit) { return [] } if (string && ( - typeof separator == 'string' || + typeof separator == 'string' || (separator != null && !isRegExp(separator)) - )) { + )) { if (!separator && hasUnicode(string)) { return castSlice(stringToArray(string), 0, limit) }