aboutsummaryrefslogtreecommitdiff
path: root/src/background/infrastructures/MemoryStorage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/infrastructures/MemoryStorage.ts')
-rw-r--r--src/background/infrastructures/MemoryStorage.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/background/infrastructures/MemoryStorage.ts b/src/background/infrastructures/MemoryStorage.ts
index af445a6..ad7bcd7 100644
--- a/src/background/infrastructures/MemoryStorage.ts
+++ b/src/background/infrastructures/MemoryStorage.ts
@@ -1,10 +1,10 @@
-const db: {[key: string]: any} = {};
+const db: { [key: string]: any } = {};
export default class MemoryStorage {
set(name: string, value: any): void {
const data = JSON.stringify(value);
- if (typeof data === 'undefined') {
- throw new Error('value is not serializable');
+ if (typeof data === "undefined") {
+ throw new Error("value is not serializable");
}
db[name] = data;
}