Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 8, 2024
1 parent ca70834 commit d4cef6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion node/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ function createZCmdStoreArgs(
if (typeof keys[0] === "string") {
args.push(...(keys as string[]));
} else {
const weightsKeys = keys.map(([key, _]) => key);
const weightsKeys = keys.map(([key]) => key);
args.push(...(weightsKeys as string[]));
const weights = keys.map(([, weight]) => weight.toString());
args.push("WEIGHTS", ...weights);
Expand All @@ -867,6 +867,7 @@ function createZCmdStoreArgs(
if (aggregationType) {
args.push("AGGREGATE", aggregationType);
}

return args;
}

Expand Down
8 changes: 4 additions & 4 deletions node/tests/SharedTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2004,10 +2004,10 @@ export function runBaseTests<Context>(config: {
`zinterstore test_%p`,
async (protocol) => {
await runTest(async (client: BaseClient) => {
await zinterstoreBasicTest;
await zinterstoreWithAggregation;
await zinterstoreWithWeightsAndAggregation;
await zinterstoreEmptyCases;
await zinterstoreBasicTest(client);
await zinterstoreWithAggregation(client);
await zinterstoreWithWeightsAndAggregation(client);
await zinterstoreEmptyCases(client);
}, protocol);
},
config.timeout,
Expand Down

0 comments on commit d4cef6d

Please sign in to comment.