Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

esl

Manav Rathi2b14f9150f6a
diff --git a/web/packages/base/kv.ts b/web/packages/base/kv.ts
index 45cf3afece..5fa20fb4ce 100644
--- a/web/packages/base/kv.ts
+++ b/web/packages/base/kv.ts
@@ -145,6 +145,10 @@ export const _getKV = async <T extends string | number | boolean>(
if (v === undefined) return undefined;
if (typeof v != type)
throw new Error(
+ // This is just an error message, it is fine if stringification
+ // produces nothing useful always, it might too in some cases.
+ //
+ // eslint-disable-next-line @typescript-eslint/no-base-to-string
`Expected the value corresponding to key ${key} to be a ${type}, but instead got ${String(v)}`,
);
return v as T;