chore: Clean up variable assignment. (#7962)

* chore: Clean up variable assignment.

* fix: variable now const as a result of prev commit
This commit is contained in:
Neil Fraser
2024-03-26 19:13:52 +01:00
committed by GitHub
parent 2f4bea4ede
commit 2ea9e21e6d
12 changed files with 16 additions and 18 deletions

View File

@@ -75,8 +75,7 @@ export function load(
}
// reverse() is destructive, so we have to re-reverse to correct the order.
for (let [name, deserializer] of deserializers.reverse()) {
name = name;
for (const [name, deserializer] of deserializers.reverse()) {
const pluginState = state[name];
if (pluginState) {
(deserializer as ISerializer)?.load(state[name], workspace);