Skip to content

Commit

Permalink
remove white space
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpotter committed Oct 15, 2024
1 parent b1d1b9f commit 2981aad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/client/lib/sentinel/multi-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class RedisSentinelMultiCommand<REPLIES = []> {
command.parseCommand(parser, ...args);
redisArgs = parser.redisArgs;
redisArgs.preserve = parser.preserve;

return this.addCommand(
command.IS_READ_ONLY,
redisArgs,
Expand All @@ -108,7 +108,7 @@ export default class RedisSentinelMultiCommand<REPLIES = []> {

private static _createModuleCommand(command: Command, resp: RespVersions) {
const transformReply = getTransformReply(command, resp);

return function (this: { _self: RedisSentinelMultiCommand }, ...args: Array<unknown>) {
let redisArgs: CommandArguments = [];

Expand Down Expand Up @@ -136,7 +136,7 @@ export default class RedisSentinelMultiCommand<REPLIES = []> {
fn.parseCommand(parser, ...args);
fnArgs = parser.redisArgs;
fnArgs.preserve = parser.preserve;

const redisArgs: CommandArguments = prefix.concat(fnArgs);
redisArgs.preserve = fnArgs.preserve;

Expand All @@ -150,7 +150,7 @@ export default class RedisSentinelMultiCommand<REPLIES = []> {

private static _createScriptCommand(script: RedisScript, resp: RespVersions) {
const transformReply = getTransformReply(script, resp);

return function (this: RedisSentinelMultiCommand, ...args: Array<unknown>) {
let scriptArgs: CommandArguments = [];

Expand All @@ -167,7 +167,7 @@ export default class RedisSentinelMultiCommand<REPLIES = []> {
scriptArgs,
transformReply
);

return this;
};
}
Expand Down

0 comments on commit 2981aad

Please sign in to comment.