Skip to content

Commit 73ffb42

Browse files
committed
fixing lint errors.
1 parent 68ff26b commit 73ffb42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function createStructuredSelector(selectors, selectorCreator = createSele
8484
)
8585
}
8686

87-
const indexResolver = (state, index, ...args) => index
87+
const indexResolver = (state, index) => index
8888

8989
export function createIndexedSelector(selectorFactory, resolver = indexResolver) {
9090
const cache = {}

test/test_selector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,11 @@ suite('selector', () => {
350350
(a, b) => a + b
351351
)
352352
)
353-
assert.equal(selector({ a: [0, 1], b: [0, 1] }, 0), 0)
353+
assert.equal(selector({ a: [ 0, 1 ], b: [ 0, 1 ] }, 0), 0)
354354
assert.equal(selector.at(0).recomputations(), 1)
355-
assert.equal(selector({ a: ['a', 1], b: [0, 1] }, 0), 'a0')
355+
assert.equal(selector({ a: [ 'a', 1 ], b: [ 0, 1 ] }, 0), 'a0')
356356
assert.equal(selector.at(0).recomputations(), 2)
357-
assert.equal(selector({ a: [0, 1], b: [0, 1] }, 1), 2)
357+
assert.equal(selector({ a: [ 0, 1 ], b: [ 0, 1 ] }, 1), 2)
358358
assert.equal(selector.at(0).recomputations(), 2)
359359
assert.equal(selector.at(1).recomputations(), 1)
360360
})

0 commit comments

Comments
 (0)