aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.js')
-rw-r--r--lib/db.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/db.js b/lib/db.js
index 94538abb..edf48910 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -10,10 +10,10 @@ export let g = async k => {
let v = await db.get(k);
try {
return JSON.parse(v);
- } catch(e) {
+ } catch (e) {
return v;
- }
-}
+ }
+};
export let s = (k, v) => db.set(k, JSON.stringify(v));
let retries = {};