Skip to content

Commit 3c5aabb

Browse files
fix lint
1 parent 64815b3 commit 3c5aabb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/util.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Fuse from 'fuse.js'
22

3-
function flatten(array) {
3+
function flatten (array) {
44
return array.reduce((flat, toFlatten) => (
55
flat.concat(Array.isArray(toFlatten) ? flatten(toFlatten) : toFlatten)
6-
), []);
6+
), [])
77
}
88

99
export function getValuesForKey (key, item) {
@@ -31,7 +31,7 @@ export function getValuesForKey (key, item) {
3131

3232
// Support arrays and Immutable lists.
3333
tmp = tmp.map(r => (r && r.push && r.toArray) ? r.toArray() : r)
34-
tmp = flatten(tmp);
34+
tmp = flatten(tmp)
3535

3636
results = tmp
3737
})

0 commit comments

Comments
 (0)