Skip to content

Commit

Permalink
Rebased and resolved conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <guian.gumpac@improving.com>
  • Loading branch information
GumpacG committed Jul 17, 2024
1 parent ed553e4 commit b7b9ca8
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions node/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1680,52 +1680,6 @@ export function createFlushAll(mode?: FlushMode): command_request.Command {
}
}

export type LPosOptions = {
rank?: number;
count?: number;
maxLength?: number;
};

function addLPosOptions(options: LPosOptions, args: string[]) {
if (options.rank !== undefined) {
args.push("RANK");
args.push(options.rank.toString());
}

if (options.count !== undefined) {
args.push("COUNT");
args.push(options.count.toString());
}

if (options.maxLength !== undefined) {
args.push("MAXLEN");
args.push(options.maxLength.toString());
}
}

export type LPosOptions = {
rank?: number;
count?: number;
maxLength?: number;
};

function addLPosOptions(options: LPosOptions, args: string[]) {
if (options.rank !== undefined) {
args.push("RANK");
args.push(options.rank.toString());
}

if (options.count !== undefined) {
args.push("COUNT");
args.push(options.count.toString());
}

if (options.maxLength !== undefined) {
args.push("MAXLEN");
args.push(options.maxLength.toString());
}
}

/**
* @internal
*/
Expand Down

0 comments on commit b7b9ca8

Please sign in to comment.