Skip to content
Myr

Prefix param with underscore to prevent unused param warning (#1145)

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

* Prefix param with underscore to prevent unused param warning * Use Object.values since we don't need key

authored by Alissa · committed by GitHub · parent e2d222b · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/utils/common.ts+2 added-2 removed
201 unmodified lines
202 }203 Object.freeze(obj)204 if (deep)205 // See #590, don't recurse into non-enumerable / Symbol properties when freezing206 // So use Object.entries (only string-like, enumerables) instead of each()207 Object.entries(obj).forEach(([key, value]) => freeze(value, true))206 // So use Object.values (only string-like, enumerables) instead of each()207 Object.values(obj).forEach(value => freeze(value, true))208 return obj209}210211function dontMutateFrozenCollections() {
6 unmodified lines