Skip to content
Myr

chore: remove unused arg3 in produceWithPatches (#975)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Brian Hung · committed by GitHub · parent 352ae73 · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:src/core/immerClass.ts+6 added-6 removed
126 unmodified lines
127 } else die(21, base)128 }129130 produceWithPatches: IProduceWithPatches = (131 arg1: any,132 arg2?: any,133 arg3?: any131 base: any,132 recipe?: any,133 ): any => {134 // curried invocation135 if (typeof arg1 === "function") {135 if (typeof base === "function") {136 return (state: any, ...args: any[]) =>137 this.produceWithPatches(state, (draft: any) => arg1(draft, ...args))137 this.produceWithPatches(state, (draft: any) => base(draft, ...args))138 }139140 let patches: Patch[], inversePatches: Patch[]141 const result = this.produce(arg1, arg2, (p: Patch[], ip: Patch[]) => {141 const result = this.produce(base, recipe, (p: Patch[], ip: Patch[]) => {142 patches = p143 inversePatches = ip144 })145
99 unmodified lines