MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / deleteListStateEntry

Function deleteListStateEntry

src/lib/openFolder.js:1061–1068  ·  view source on GitHub ↗
(listState, key)

Source from the content-addressed store, hash-verified

1059}
1060
1061function deleteListStateEntry(listState, key) {
1062 if (listState instanceof Map) {
1063 listState.delete(key);
1064 return;
1065 }
1066
1067 delete listState[key];
1068}
1069
1070/**
1071 * Move saved expanded-state keys after a folder rename.

Callers 1

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected