You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
improve transformArguments - (lgtm report)
This commit is contained in:
@@ -4,13 +4,7 @@ import { pushVerdictArguments } from './generic-transformers';
|
|||||||
export const IS_READ_ONLY = true;
|
export const IS_READ_ONLY = true;
|
||||||
|
|
||||||
export function transformArguments(...commandNames: Array<string>): RedisCommandArguments {
|
export function transformArguments(...commandNames: Array<string>): RedisCommandArguments {
|
||||||
const args = ['COMMAND', 'DOCS'];
|
return pushVerdictArguments(['COMMAND', 'DOCS'], commandNames);
|
||||||
|
|
||||||
if (commandNames) {
|
|
||||||
pushVerdictArguments(args, commandNames);
|
|
||||||
}
|
|
||||||
|
|
||||||
return args;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ArgumentsDoc {
|
interface ArgumentsDoc {
|
||||||
|
Reference in New Issue
Block a user