Skip to content

Commit

Permalink
Fix thrown pipeline error in Redis KV storage
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbbot committed Jul 29, 2021
1 parent 499bc4c commit fec3372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kv/storage/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class RedisKVStorage extends KVStorage {
// Throws any errors from the result of a pipeline
// noinspection JSMethodCanBeStatic
private throwPipelineErrors(res: [Error | null, unknown][]): void {
for (const [error] of res) if (error) throw res;
for (const [error] of res) if (error) throw error;
}

async has(key: string): Promise<boolean> {
Expand Down

0 comments on commit fec3372

Please sign in to comment.