Skip to content

Commit

Permalink
Remove unused parameter (#206)
Browse files Browse the repository at this point in the history
* Remove superfluous argument: key

* Remove unused parameter: key
  • Loading branch information
styfle authored and aleclarson committed Oct 13, 2018
1 parent f2f4f2c commit 09d69ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ function markChanged(state) {
}

// creates a proxy for plain objects / arrays
function createProxy(parentState, base, key) {
function createProxy(parentState, base) {
if (isProxy(base)) throw new Error("Immer bug. Plz report.")
const state = createState(parentState, base, key)
const state = createState(parentState, base)
const proxy = Array.isArray(base)
? Proxy.revocable([state], arrayTraps)
: Proxy.revocable(state, objectTraps)
Expand Down

0 comments on commit 09d69ae

Please sign in to comment.