Skip to content
Myr

Remove trailing comma in console.warn

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

Avoid unexpected token error from babel compiler

authored by Sally Hill · committed by GitHub · parent fcc941c · 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