Skip to content

Commit

Permalink
chore: no unnecessary async
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnagydavid committed Oct 2, 2024
1 parent 6993426 commit 8adbce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redisHashKeyValueDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class RedisHashKeyValueDB implements CommonKeyValueDB, AsyncDisposable {
match: `${table}:*`,
})
.flatMap(
async keyValueList => {
keyValueList => {
const values: string[] = []
keyValueList.forEach((keyOrValue, index) => {
if (index % 2 !== 1) return
Expand All @@ -107,7 +107,7 @@ export class RedisHashKeyValueDB implements CommonKeyValueDB, AsyncDisposable {
match: `${table}:*`,
})
.flatMap(
async keyValueList => {
keyValueList => {
const entries = _chunk(keyValueList, 2)
return entries.map(([k, v]) => {
return [
Expand Down

0 comments on commit 8adbce5

Please sign in to comment.