Skip to content
Myr

Merge pull request #21 from sallyhill/patch-1

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

Remove trailing comma in console.warn

authored by Michel Weststrate · committed by GitHub · parents fcc941c, 20faf1b · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:immer.js+1 added-1 removed
165 unmodified lines
166 const maybeVoidReturn = thunk(rootClone)167 //values either than undefined will trigger warning;168 !Object.is(maybeVoidReturn, undefined) &&169 console.warn(170 `Immer callback expects no return value. However ${typeof maybeVoidReturn} was returned`,170 `Immer callback expects no return value. However ${typeof maybeVoidReturn} was returned`171 )172 // console.log(`proxies: ${revocableProxies.size}, copies: ${copies.size}`)173 // revoke all proxies174 revoke(revocableProxies)
49 unmodified lines