MCPcopy Index your code
hub / github.com/Exafunction/codeium-chrome / clearLastError

Function clearLastError

src/shared.ts:4–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3// Check if lastError is empty dict and clear it if not empty.
4async function clearLastError(): Promise<void> {
5 const lastError = await getStorageItem('lastError');
6 if (lastError && Object.keys(lastError).length === 0) {
7 await setStorageItem('lastError', {});
8 }
9}
10
11export async function loggedOut(): Promise<void> {
12 await Promise.all([

Callers 2

loggedOutFunction · 0.85
loggedInFunction · 0.85

Calls 2

getStorageItemFunction · 0.90
setStorageItemFunction · 0.90

Tested by

no test coverage detected