You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +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 function transformArguments(...commandNames: Array<string>): RedisCommandArguments {
|
||||
const args = ['COMMAND', 'DOCS'];
|
||||
|
||||
if (commandNames) {
|
||||
pushVerdictArguments(args, commandNames);
|
||||
}
|
||||
|
||||
return args;
|
||||
return pushVerdictArguments(['COMMAND', 'DOCS'], commandNames);
|
||||
}
|
||||
|
||||
interface ArgumentsDoc {
|
||||
|
Reference in New Issue
Block a user