Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit d8726bc

Browse files
committed
Remove redundant await
1 parent 18e476b commit d8726bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/orbitdb-api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ class OrbitdbAPI extends Express {
145145
this.get('/db/:dbname/value', asyncMiddleware( async (req, res, next) => {
146146
let db, val
147147
db = await dbm.get(req.params.dbname)
148-
val = await db.value
149-
return res.json(val)
148+
return res.json(db.value)
150149
}));
151150

152151
this.get('/db/:dbname/:item', asyncMiddleware( async (req, res, next) => {

0 commit comments

Comments
 (0)