Skip to content

Commit f08e94f

Browse files
authored
nit
1 parent 465911e commit f08e94f

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

packages/client/lib/client/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,11 @@ export default class RedisClient<
837837
this._self.#queue.addCommand(['MULTI'], { chainId }),
838838
];
839839

840-
for (const { args} of commands) {
840+
for (const { args } of commands) {
841841
promises.push(
842842
this._self.#queue.addCommand(args, {
843-
chainId: chainId,
844-
typeMapping: typeMapping
843+
chainId,
844+
typeMapping
845845
})
846846
);
847847
}

packages/search/lib/commands/AGGREGATE.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ export default {
147147
2: (rawReply: AggregateRawReply): AggregateReply => {
148148
const results: Array<Record<string, BlobStringReply>> = [];
149149
for (let i = 1; i < rawReply.length; i++) {
150-
results.push(
151-
transformTuplesReply(rawReply[i] as ArrayReply<BlobStringReply>)
152-
);
150+
results.push(
151+
transformTuplesReply(rawReply[i] as ArrayReply<BlobStringReply>)
152+
);
153153
}
154154

155155
return {
156-
total: Number(rawReply[0]),
157-
results
156+
total: Number(rawReply[0]),
157+
results
158158
};
159159
},
160160
3: undefined as unknown as () => ReplyUnion

packages/search/lib/commands/AGGREGATE_WITHCURSOR.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default {
3636
transformReply: {
3737
2: (reply: AggregateWithCursorRawReply): AggregateWithCursorReply => {
3838
return {
39-
...AGGREGATE.transformReply[2](reply[0]),
40-
cursor: reply[1]
39+
...AGGREGATE.transformReply[2](reply[0]),
40+
cursor: reply[1]
4141
};
4242
},
4343
3: undefined as unknown as () => ReplyUnion

packages/search/lib/commands/SUGADD.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ export default {
2121

2222
return args;
2323
},
24-
transformReply: undefined as unknown as () => NumberReply,
24+
transformReply: undefined as unknown as () => NumberReply
2525
} as const satisfies Command;

packages/time-series/lib/commands/MGET.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ export type MGetRawReply3 = Array<[
3232
]>;
3333

3434
export interface MGetReply2 {
35-
key: string,
36-
sample: SampleReply2
35+
key: string;
36+
sample: SampleReply2;
3737
}
3838

3939
export interface MGetReply3 {
40-
key: string,
41-
sample: SampleReply3
40+
key: string;
41+
sample: SampleReply3;
4242
}
4343

4444
export default {
@@ -49,17 +49,17 @@ export default {
4949
return pushFilterArgument(args, filter);
5050
},
5151
transformReply: {
52-
2: (reply: MGetRawReply2): Array<MGetReply2> => {
52+
2(reply: MGetRawReply2): Array<MGetReply2> {
5353
return reply.map(([key, _, sample]) => ({
54-
key,
55-
sample: transformSampleReply[2](sample)
54+
key,
55+
sample: transformSampleReply[2](sample)
5656
}));
5757
},
58-
3: (reply: MGetRawReply3): Array<MGetReply3> => {
58+
3(reply: MGetRawReply3): Array<MGetReply3> {
5959
return reply.map(([key, _, sample]) => ({
60-
key,
61-
sample: transformSampleReply[3](sample)
60+
key,
61+
sample: transformSampleReply[3](sample)
6262
}));
63-
},
63+
}
6464
}
6565
} as const satisfies Command;

packages/time-series/lib/commands/MRANGE.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export default {
7878
const args = [];
7979

8080
for (const [key, _, sample] of reply) {
81-
args.push({
82-
key,
83-
samples: sample.map(transformSampleReply[2])
84-
});
81+
args.push({
82+
key,
83+
samples: sample.map(transformSampleReply[2])
84+
});
8585
}
8686

8787
return args;

packages/time-series/lib/commands/MRANGE_WITHLABELS.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ export default {
3131
IS_READ_ONLY: true,
3232
transformArguments: transformMRangeWithLabelsArguments.bind(undefined, 'TS.MRANGE'),
3333
transformReply: {
34-
2: (reply: MRangeRawReply2): Array<MRangeWithLabelsReplyItem2> => {
34+
2(reply: MRangeRawReply2): Array<MRangeWithLabelsReplyItem2> {
3535
const args = [];
3636

3737
for (const [key, labels, samples] of reply) {
38-
args.push({
39-
key,
40-
labels: transformLablesReply(labels),
41-
samples: samples.map(transformSampleReply[2])
42-
});
38+
args.push({
39+
key,
40+
labels: transformLablesReply(labels),
41+
samples: samples.map(transformSampleReply[2])
42+
});
4343
}
4444

4545
return args;

0 commit comments

Comments
 (0)